[Rt-devel] Accessing last comment

Andy Harrison aharrison at gmail.com
Fri Feb 25 13:27:50 EST 2005


On Fri, 25 Feb 2005 11:49:12 -0500 (EST), Ramon Kagan <rkagan at yorku.ca> wrote:
> HI,
> 
> I need to attach the notes from an approval denial to an outgoing email.
> My idea was to:
> 
> >From the originating queue:
>         On status change to rejected
>         Notify Requestor
>         using a template that adds the notes to the end.
> 
> How do I add the notes?  I can get the "ticket" via Links, I just don't
> know how to get the attachment form the "approval ticket".
> 

You could combine this:

http://wiki.bestpractical.com/index.cgi?AddLastCommentToMail

With this:

Description: MyOnRejectedScrip
Condition: User defined
Custom Condition:
return undef unless ($self->TransactionObj->Type eq "Rejected");

Action: Notify ...someone...

Template: Global template: YourNewTemplate


-- 
Andy Harrison


More information about the Rt-devel mailing list