<div>OK, problem fixed, found the error.</div>
<div>Use <font color="#0000ff">AdminCC: {$Tickets{'TOP'}->AdminCc->MemberEmailAddressesAsString()} instead</font></div>
<p><font color="#0000ff"></font> </p>
<div>Torsten</div>
<div><br><br><br></div>
<div class="gmail_quote">2010/10/15 Brumm, Torsten / Kuehne + Nagel / Ham MI-ID <span dir="ltr"><<a href="mailto:torsten.brumm@kuehne-nagel.com">torsten.brumm@kuehne-nagel.com</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div lang="EN-GB" link="blue" vlink="purple">
<div><span><font color="#0000ff" size="2" face="Arial">Dear List,</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial">i'm trying to create an approval Ticket (RT 3.6.5) with the following Template:</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial">===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><font color="#0000ff" size="2" face="Arial"></font> </div>
<div><span><font color="#0000ff" size="2" face="Arial">{$Tickets{"TOP"}->Transactions->First->Content()}<br>ENDOFCONTENT</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial">Script for this:</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial">OnOpen</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial">CreateTickets</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial">Template: Approval</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial">So, when a ticket is going to open, create an approval ticket</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial">This is working fine so far, but this Part:</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial">AdminCC: {$Tickets{'TOP'}->AdminCc->MemberEmailAddresses()}</font><br></span></div>
<div><span><font color="#0000ff" size="2" face="Arial">wont work, the adminCC Field is empty.</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial">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><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial">Below the logfile output:</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial">[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><font color="#0000ff" size="2" face="Arial">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><font color="#0000ff" size="2" face="Arial">{$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 href="mailto:someuser@company.com" target="_blank">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><font color="#0000ff" size="2" face="Arial">Requested_by_Region: HQ - Head Quarter<br>Requested_by_Name: Some Name<br>Value: 123<br>Remarks:</font></span></div>
<div> </div>
<div><span><font color="#0000ff" size="2" face="Arial">TEST</font></span></div>
<div> </div><span>
<div><br><font color="#0000ff" size="2" face="Arial">ENDOFCONTENT (/opt/rt3/lib/RT/Action/CreateTickets.pm:897)<br></font></div>
<div><span><font color="#0000ff" size="2" face="Arial">Any ideas? I'm confused at the moment :-(</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial">Thanks</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial"><br>Torsten</font></span></div></span><br>
<p><span style="FONT-FAMILY: Arial; FONT-SIZE: 8pt">Kühne + Nagel (AG & Co.) KG, Geschäftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius, Reiner <span>Heiken</span>, Bruno Mang, Alfred <span>Manke</span>, Christian Marnetté, Mark Reinhardt, Jens <span>Wollesen</span>, Klaus <span>Jäger (stellv.)</span>, Sitz: Bremen, Registergericht: Bremen, HRA 21928, <span>USt-IdNr</span>.: DE 812773878, Persönlich haftende Gesellschaft: Kühne & Nagel A.G., Sitz: <span>Contern/Luxemburg</span>, Geschäftsführender Verwaltungsrat: Klaus-Michael Kühne </span></p>
<br></div><br><br>RT Training in Washington DC, USA on Oct 25 & 26 2010<br>Last one this year -- Learn how to get the most out of RT!<br></blockquote></div><br><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>