Kieth,<br><br>The LINKS Table will have that info. Type is "MergedInto".<br><br>Kenn<br>LBNL<br><br><div class="gmail_quote">On Tue, Apr 27, 2010 at 4:28 PM, Kenneth Crocker <span dir="ltr"><<a href="mailto:kfcrocker@lbl.gov">kfcrocker@lbl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Kieth,<br><br>The LINKS Table will have that info. Type is "MergedInto".<br><br>Kenn<br>
LBNL<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Tue, Apr 27, 2010 at 2:53 PM, Keith Edmunds <span dir="ltr"><<a href="mailto:kae@midnighthax.com" target="_blank">kae@midnighthax.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Is it not possible to detect which ticket is being merged?<br>
<div><div></div><div><br>
> We have a scrip that runs "On Transaction" and calls an external script,<br>
> passing the ticket id. We want to take actions in the external script<br>
> when a ticket is merged. If we merge, say, ticket 100 into ticket 200,<br>
> the ticket id passed to our external script is 200. How can we find out,<br>
> via the REST interface, the ticket id that was merged (100 in this<br>
> example)?<br>
><br>
> Frustratingly, going the other way is easy - if we retrieve ticket<br>
> information for 100 via the REST interface, ticket 200 is retrieved.<br>
><br>
> If it helps, here's our scrip (we are not Perl wizards, which may be<br>
> stating the obvious when you see the code below: all criticism gratefully<br>
> received):<br>
><br>
> my $tx = $self->TransactionObj;<br>
> my $ticket = $self->TicketObj;<br>
> my $id = $ticket->id;<br>
> my $type = $tx->Type;<br>
> my $field = $tx->Field;<br>
> my $old = $tx->OldValue;<br>
> my $new = $tx->NewValue;<br>
><br>
> system("wget<br>
> '<a href="http://localhost/xyz/transaction?rt=$id" target="_blank">http://localhost/xyz/transaction?rt=$id</a>".'&type='."$type".'&field='."$field".'&old='."$old".'&new='."$new'")<br>


><br>
> Thanks<br>
<br>
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.<br>
Buy a copy at <a href="http://rtbook.bestpractical.com" target="_blank">http://rtbook.bestpractical.com</a><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>