[rt-users] How to get RT ticket links.

Mohy Farag mohy at pair.com
Mon Jun 1 13:23:08 EDT 2009


How can I get a hash of links from rt?

By links I mean (Depends on, Depended on by, Parents, Children, Refers to 
and, Referred to by).

This will be a script in perl that runs remotely and connects to an RT 
machine. my research led me to module RT::Client::REST. It can retrieve 
other info on a ticket but not the links. any idea how I can get a hash of 
links from rt?

Currently RT::Client::REST->show() only returns

$VAR1 = {
           'TimeEstimated' => '',
           'Status' => 'open',
           'Queue' => 'q1',
           'AdminCc' => '',
           'Requestors' => 'log at log.com',
           'Started' => 'Thu Feb 19 1:02:58 2009',
           'InitialPriority' => '40',
           'Starts' => 'Not set',
           'TimeWorked' => '',
           'id' => 'ticket/2',
           'Told' => 'Not set',
           'Cc' => '',
           'Subject' => 'test ticket',
           'FinalPriority' => '90',
           'TimeLeft' => '',
           'Creator' => 'guy',
           'Owner' => 'guy',
           'Resolved' => 'Not set',
           'Created' => 'Tue Feb 17 13:22:11 2009',
           'Priority' => '42',
           'Due' => 'Not set'
};


-Mohy



More information about the rt-users mailing list