[rt-users] onMerge template

Ruslan Zakirov ruslan.zakirov at gmail.com
Wed Apr 19 18:00:50 EDT 2006


I think you can use something like this:
my $oldTicket = RT::Ticket->new( $RT::SystemUser );
$oldTicket->LoadById( $txn->ObjectId );
$oldTicket->Subject;

On 4/12/06, Frederic Van De Velde <frederic.vandevelde at paradigmo.com> wrote:
> Hi,
>
> I wanted to notify the requestor when a ticket merge occurs.
> I have created a user defined scrips action that only trigger my
> template when a merge occurs
> (as described on http://wiki.bestpractical.com/index.cgi?OnMerge)
>
> This works perfectly but I have problems defining what to report in my
> template.
> I want to include the subject of the ticket getting merge into the new
> one, is it possible ?
>
> Example:
>
> Subject: {$MergedTicket->Subject} - merged into #{$Ticket->Id}
>
> Dear {$Ticket->CreatorObj->RealName},
>
> This is to notify you that your ticket:
>
>   #{$Transaction->ObjectId} - {$MergedTicket->Subject}
>
> has been merged into ticket:
>
>   #{$Ticket->Id} - {$Ticket->Subject}
>
>
>
>
> Any idea on how to retrieve the merged ticket subject ?
>
> Regards,
> Frederic.
> _______________________________________________
> 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
>
>
> We're hiring! Come hack Perl for Best Practical: http://bestpractical.com/about/jobs.html
>


--
Best regards, Ruslan.


More information about the rt-users mailing list