[rt-users] Include Resolve comment on resolve

Chad Osmond chad.osmond at holburn.com
Wed Feb 1 15:07:53 EST 2006


When I resolve a ticket, it e-mails the user the resolved template, but
that template doesn't include the information I entered. Do I need to
use the following?:

{
 my $resolution_comment;
 my $Transactions = $Ticket->Transactions;

 $Transactions->Limit( FIELD => 'Type', VALUE => 'Comment' );
 $Transactions->OrderByCols (
               { FIELD => 'Created',  ORDER => 'DESC' },
               { FIELD => 'id',     ORDER => 'DESC' },
               );

 my $CommentObj = $Transactions->First;
 if( $CommentObj && $CommentObj->id ) {
   $resolution_comment = $CommentObj->Content;
 }

 $resolution_comment;
}

Thanks,

Chad 



More information about the rt-users mailing list