I know it's bad form to reply to yourself, but I stole some code from
http://wiki.bestpractical.com/index.cgi?AddLastCommentToMail,
changing it to the template:
RT-Attach-Message: yes
{
my $resolution_comment;
my $Transactions = $Ticket->Transactions;
$Transactions->Limit( FIELD => 'Type', VALUE => 'Create' );
my $CommentObj = $Transactions->First;
if( $CommentObj && $CommentObj->id ) {
$resolution_comment = $CommentObj->Content;
}
$resolution_comment;
}
and that (pardon the pun) was the ticket...
Further investigation on the wiki give me what may be an even easier
solution:
{ $Ticket->Transactions->First->Content; }
I didn't try it, though.
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com
We're hiring! Come hack Perl for Best Practical:
http://bestpractical.com/about/jobs.html