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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > > > 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.
_______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [EMAIL PROTECTED] 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
