[rt-users] Changing Admin Correspondance Template

Michael Leighty mleighty at angelica.com
Thu Sep 7 16:23:43 EDT 2006


 
Thanks for your response Roy.

What would it take to include the last item in the ticket history as
well as the first.

Thanks again.


-----Original Message-----
From: Roy El-Hames [mailto:rfh at pipex.net] 
Sent: Wednesday, September 06, 2006 10:52 AM
To: Michael Leighty
Cc: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] Changing Admin Correspondance Template

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