[rt-users] Merge tickets, transaction notification and REST

Keith Edmunds kae at midnighthax.com
Tue Apr 20 15:39:00 EDT 2010

We have a scrip that runs "On Transaction" and calls an external script,
passing the ticket id. We want to take actions in the external script when
a ticket is merged. If we merge, say, ticket 100 into ticket 200, the
ticket id passed to our external script is 200. How can we find out, via
the REST interface, the ticket id that was merged (100 in this example)?

Frustratingly, going the other way is easy - if we retrieve ticket
information for 100 via the REST interface, ticket 200 is retrieved.

If it helps, here's our scrip (we are not Perl wizards, which may be
stating the obvious when you see the code below: all criticism gratefully

my $tx = $self->TransactionObj;
my $ticket = $self->TicketObj;
my $id = $ticket->id;
my $type = $tx->Type;
my $field = $tx->Field;
my $old = $tx->OldValue;
my $new = $tx->NewValue;



More information about the rt-users mailing list