[rt-users] Scrip/template "Notify parent ticket owner on resolve"?

Thomas Sibley trs at bestpractical.com
Tue Jun 5 17:29:42 EDT 2012

On 06/05/2012 05:20 PM, Jeff Blaine wrote:
> That's a good start to work with.
> Any leads on the proper way to go about sending mail via a template
> from inside a scrip would be welcome.

This is what scrips are meant to do at their core. ;)

> Do I just subclass Action::SendEmail, build my message, and commit()
> it? I don't see a way to reference/use a template for that.
>     Condition: On Resolve
>     Action: User-defined
>     Template: ??????

Think about it this way.  Make your Condition custom "On Resolve + Has

Then use a standard Notify* action and set the Template on the scrip.

>     Custom condition code:
>         N/A
>     Custom action preparation code:
>         if ticket has no parents
>             return 1
>         # otherwise... do stuff, send email
>     Custom action cleanup code:
>         return 1;

More information about the rt-users mailing list