[rt-users] AddLastCommentToMail fails when using Jumbo

Jonathan Chen JChen at paymentone.com
Tue Jul 13 18:25:59 EDT 2004


 
Thanks to the guy who wrote a useful script.   We are currently going beta testing next week with RT 3.11.   

 

Here is what we did to get the code below to fail….

 

1)       Click on Jumbo link after seeing the ticket.

2)       Then change ticket status to resolve.

3)       Add your last comment into the comment filed 

4)       Submit and RT will not show the last comment but previous one if there is one.

 

 

http://wiki.bestpractical.com/index.cgi?AddLastCommentToMail

 

code:

{

 my $resolution_comment;

 my $Transactions = $Ticket->Transactions;

 $Transactions->GotoFirstItem;

 while (my $Transaction = $Transactions->Next) {

   $resolution_comment = $Transaction->Content() if $Transaction->Type eq 'Comment'; 

 }

 $OUT .= $resolution_comment;

 $OUT;

}

 

 

It seems to fail because RT closes the ticket 1st , then add the last comment.   If it was in reverse like closing the ticket with comment via the link on top right corner, then it should work fine.   So how do I get around this? 
 
--------------------------------------------------------
 
This electronic mail message contains information belonging to PaymentOne, which may be confidential and/or legal privileged. The information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, printing, copying, distribution, or the taking of any action in reliance on the contents of this electronically mailed information is strictly prohibited. If you receive this message in error, please immediately notify us by electronic mail and delete this message. 
--------------------------------------------------------
 
 
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20040713/1f4b2cf7/attachment.htm>


More information about the rt-users mailing list