AddLastCommentToMail fails when using Jumbo

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.



my $resolution_comment;

my $Transactions = $Ticket->Transactions;


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

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


$OUT .= $resolution_comment;



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.