<div><span class="934043110-15102010"><font color="#0000ff" size="2">Dear
List,</font></span></div>
<div><span class="934043110-15102010"><font color="#0000ff" size="2">i'm
trying to create an approval Ticket (RT 3.6.5) with the following
Template:</font></span></div>
<div><span class="934043110-15102010"></span> </div>
<div><span class="934043110-15102010"><font color="#0000ff" size="2">===Create-Ticket: INVEST<br>Subject: Manager Approval for Investment:
{$Tickets{"TOP"}->Id} - {$Tickets{"TOP"}->Subject}<br>Depended-On-By:
TOP<br>Refers-To: {$Tickets{'TOP'}->Id()}<br>Queue: ___APPROVAL<br>Type:
approval<br>Requestor: {$Tickets{'TOP'}->RequestorAddresses()}<br>AdminCC:
{$Tickets{'TOP'}->AdminCc->MemberEmailAddresses()}<br>Content-Type:
text/plain<br>Content: Your approval is requested for the ticket
{$Tickets{"TOP"}->Id}: {$Tickets{"TOP"}->Subject}</font></span></div>
<div> </div>
<div><span class="934043110-15102010"><font color="#0000ff" size="2">{$Tickets{"TOP"}->Transactions->First->Content()}<br>ENDOFCONTENT</font></span></div>
<div><span class="934043110-15102010"></span> </div>
<div><span class="934043110-15102010"><font color="#0000ff" size="2">Script
for this:</font></span></div>
<div><span class="934043110-15102010"></span> </div>
<div><span class="934043110-15102010"><font color="#0000ff" size="2">OnOpen</font></span></div>
<div><span class="934043110-15102010"><font color="#0000ff" size="2">CreateTickets</font></span></div>
<div><span class="934043110-15102010"><font color="#0000ff" size="2">Template: Approval</font></span></div>
<div><span class="934043110-15102010"></span> </div>
<div><span class="934043110-15102010"><font color="#0000ff" size="2">So,
when a ticket is going to open, create an approval ticket</font></span></div>
<div><span class="934043110-15102010"></span> </div>
<div><span class="934043110-15102010"><font color="#0000ff" size="2">This
is working fine so far, but this Part:</font></span></div>
<div><span class="934043110-15102010"></span> </div>
<div><span class="934043110-15102010"><font color="#0000ff" size="2">AdminCC:
{$Tickets{'TOP'}->AdminCc->MemberEmailAddresses()}</font><br></span></div>
<div><span class="934043110-15102010"><font color="#0000ff" size="2">wont
work, the adminCC Field is empty.</font></span></div>
<div><span class="934043110-15102010"></span> </div>
<div><span class="934043110-15102010"><font color="#0000ff" size="2">Before
the ticket is going to open, we add a group as admincc to the ticket, and this
group members should later on also the approvers.</font></span></div>
<div><span class="934043110-15102010"></span> </div>
<div><span class="934043110-15102010"><font color="#0000ff" size="2">Below
the logfile output:</font></span></div>
<div><span class="934043110-15102010"></span> </div>
<div><span class="934043110-15102010"><font color="#0000ff" size="2">[Fri
Oct 15 10:26:58 2010] [debug]: Workflow: processing create-INVEST of
RT::Ticket=HASH(0xa6d3980) (/opt/rt3/lib/RT/Action/CreateTickets.pm:588)<br>[Fri
Oct 15 10:26:58 2010] [debug]: Workflow: evaluating<br>Subject: Manager Approval
for Investment: {$Tickets{"TOP"}->Id} -
{$Tickets{"TOP"}->Subject}<br>Depended-On-By: TOP<br>Refers-To:
{$Tickets{'TOP'}->Id()}<br>Queue: ___APPROVAL</font></span></div>
<div><span class="934043110-15102010"><font color="#0000ff" size="2">Type:
approval<br>Requestor: {$Tickets{'TOP'}->RequestorAddresses()}<br>AdminCC:
{$Tickets{'TOP'}->AdminCc->MemberEmailAddresses()}<br>Content-Type:
text/plain<br>Content: Your approval is requested for the ticket
{$Tickets{"TOP"}->Id}: {$Tickets{"TOP"}->Subject}</font></span></div>
<div> </div>
<div><span class="934043110-15102010"><font color="#0000ff" size="2">{$Tickets{"TOP"}->Transactions->First->Content()}<br>ENDOFCONTENT
(/opt/rt3/lib/RT/Action/CreateTickets.pm:881)<br>[Fri Oct 15 10:26:58 2010]
[debug]: Workflow: yielding<br>Subject: Manager Approval for Investment:
44425100 - TEST 9 bitten ignorieren<br>Depended-On-By: TOP<br>Refers-To:
44425100<br>Queue: ___APPROVAL<br>Type: approval<br>Requestor: <a title="mailto:someuser@company.com" href="mailto:someuser@company.com">someuser@company.com</a><br>AdminCC:<br>Content-Type:
text/plain<br>Content: Your approval is requested for the ticket 44425100: TEST
9 bitten ignorieren</font></span></div>
<div> </div>
<div><span class="934043110-15102010"><font color="#0000ff" size="2">Requested_by_Region: HQ - Head Quarter<br>Requested_by_Name: Some
Name<br>Value: 123<br>Remarks:</font></span></div>
<div> </div>
<div><span class="934043110-15102010"><font color="#0000ff" size="2">TEST</font></span></div>
<div> </div><span class="934043110-15102010">
<div><br><font color="#0000ff" size="2">ENDOFCONTENT
(/opt/rt3/lib/RT/Action/CreateTickets.pm:897)<br></font></div>
<div><span class="934043110-15102010"><font color="#0000ff" size="2">Any
ideas? I'm confused at the moment :-(</font></span></div>
<div><span class="934043110-15102010"></span> </div>
<div><span class="934043110-15102010"><font color="#0000ff" size="2">Thanks</font></span></div>
<div><span class="934043110-15102010"><font color="#0000ff" size="2"><br>Torsten</font></span></div></span><br clear="all"><br>-- <br>MFG<br><br>Torsten Brumm<br><br><a href="http://www.brumm.me">http://www.brumm.me</a><br>
<a href="http://www.elektrofeld.de">http://www.elektrofeld.de</a><br>