[rt-users] How to get RT ticket links.
Tom Lahti
toml at bitstatement.net
Mon Jun 1 14:05:10 EDT 2009
URI: REST/1.0/ticket/nn/links/show
Give it a try. I don't know if there's a convenient function for it in
RT::Client::REST but I'll be adding it to my rt-client ruby gem shortly.
Mohy Farag wrote:
> 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
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
--
-- ============================
Tom Lahti
BIT Statement LLC
(425)251-0833 x 117
http://www.bitstatement.net/
-- ============================
More information about the rt-users
mailing list