[rt-users] Changing Admin Correspondance Template
Roy El-Hames
rfh at pipex.net
Wed Sep 6 10:51:30 EDT 2006
Michael;
Try this (you add it to the bottom of the template you want to change):
The initial request was:
====
{
my $cont = '';
my $trans = $Ticket->Transactions;
$trans->Limit(FIELD => 'Type', VALUE => 'Create');
while (my $tran = $trans->Next) {
my $attach = $tran->Attachments;
while (my $msg = $attach->Next){
next unless $msg->ContentType =~ m!^(text/plain|message|text$)!i;
my $content = $msg->Content;
next unless $content;
next if $cont eq $content;
$cont = $content;
my $wrapper = Text::Wrapper->new(columns=>70);
$cont = $wrapper->wrap($cont);
}
}
$cont ;
}
=============================================
Roy
Michael Leighty wrote:
> This is probably a really easy question, but I've spent the last few
> hours looking through the past mailings on here to see if anyone
> addressed it and I can't find it.
>
> Basically I'd like to include the first entry from the ticket history
> (likely to be the description of the problem) in any email that is sent
> out about the ticket. I guess this might mean editing the transaction
> template as well. Also I'd like the to include whatever the last entry
> in the ticket history is, so that the person can easily see what was
> last done, or what comments were made before the ticket was assigned to
> them, or they were added as adminCC.
>
> Thanks for your help.
>
> Michael Leighty
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
More information about the rt-users
mailing list