onMerge template

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 Request Tracker Wiki)

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:

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.

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@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 Request Tracker Wiki)

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.


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@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: Careers — Best Practical Solutions

Best regards, Ruslan.