mmf has asked for the wisdom of the Perl Monks concerning the following question:

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?

Replies are listed 'Best First'.
Re: RT get links
by Anonymous Monk on May 29, 2009 at 03:23 UTC
    Maybe its part of the object, try
    use Data::Dumper; print Dumper( $foo );
      This will display something useful iff it [the object being dumped] is not based on an OO implementation that hides the actual class/instance data e.g. Object::InsideOut or (I strongly suspect) Moose.

      As it happens, RT::Client::REST bears the hallmarks of having been written using traditional, hand-cranked, hash-based perl objects.

      A user level that continues to overstate my experience :-))