[rt-users] Finding a merged ticket via API
Mike Friedman
mikef at ack.Berkeley.EDU
Thu May 18 14:24:21 EDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 18 May 2006 at 09:24 (-0700), I wrote:
> I have a perl script that uses the RT API to find tickets meeting
> certain criteria. For example, all tickets with a specified string in
> the subject, or a ticket with a specific ID. It works fine, except
> tickets that have been merged into other tickets are not found under
> their original IDs. Yet, in the Web interface, if I enter a ticket ID
> that has been merged into another, it will show me the other ticket,
> which is what I want.
>
> What do I have to do in my API script to accomplish what the Web
> interface does? For example, if ticket 12345 has been merged into
> ticket 23456, I'd like to be able to tell my script I want to see ticket
> 12345 and have it show me ticket 23456.
Never mind. I've accomplished what I want just by using the
$TicketObj->Load method, instead of $TicketList->LimitID. Apparently the
latter doesn't know how to resolve links.
Mike
_____________________________________________________________________
Mike Friedman System and Network Security
mikef at ack.Berkeley.EDU 2484 Shattuck Avenue
1-510-642-1410 University of California at Berkeley
http://ack.Berkeley.EDU/~mikef http://security.berkeley.edu
_____________________________________________________________________
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
iQA/AwUBRGy72K0bf1iNr4mCEQLQdwCaA802ACf7nmFrBQmfaBfr/GQh1sIAniV+
gRxF6bAo35nsQoFb+JHFC3Gc
=gycX
-----END PGP SIGNATURE-----
More information about the rt-users
mailing list