Parent/Child relationships for tickets in RT REST

I’m writing some perl that analyzes new Incident Reports in RTIR and looks
for related Incidents that might already exist. I cannot however figure
out how to link them now because there’s no Parent/Child relationship in RT
::Client::REST. Can anyone offer some guidance on what I can do? I’m
about an hour into the coding and this is a major roadblock.

Shows:
link_tickets (src => $id1, dst => $id2, link_type => $type)

Create a link between two tickets. A link type can be one of the following:

  • DependsOn
  • DependedOnBy
  • RefersTo
  • ReferredToBy
  • HasMember
  • MemberOf

Should I have just gone ahead and used LWP or would I still have the same
problem?

Landon Stewart LandonStewart@Gmail.com

Hello,

I also posted this on rt-devel but it’s not really a development of RT
issue. More like a REST interface issue. I hope it’s OK that I’m
crossposting it here.

I’m writing some perl that analyzes new Incident Reports in RTIR and looks
for related Incidents that might already exist. I cannot however figure
out how to link them now because there’s no Parent/Child relationship in RT
::Client::REST. Can anyone offer some guidance on what I can do? I’m
about an hour into the coding and this is a major roadblock.

Shows:
link_tickets (src => $id1, dst => $id2, link_type => $type)

Create a link between two tickets. A link type can be one of the following:

  • DependsOn
  • DependedOnBy
  • RefersTo
  • ReferredToBy
  • HasMember
  • MemberOf

Should I have just gone ahead and used LWP or would I still have the same
problem?

Landon Stewart LandonStewart@Gmail.com

Hi Landon,

HasMember & MemberOf should create a Parent/Child relationship shouldn’t it?

JohnOn 19/05/13 8:25 AM, Landon wrote:

Hello,

I also posted this on rt-devel but it’s not really a development of RT
issue. More like a REST interface issue. I hope it’s OK that I’m
crossposting it here.

I’m writing some perl that analyzes new Incident Reports in RTIR and
looks for related Incidents that might already exist. I cannot however
figure out how to link them now because there’s no Parent/Child
relationship in RT::Client::REST. Can anyone offer some guidance on what
I can do? I’m about an hour into the coding and this is a major roadblock.

http://search.cpan.org/~jlmartin/RT-Client-REST-0.43/lib/RT/Client/REST.pm
Shows:
link_tickets (src => $id1, dst => $id2, link_type => $type)

Create a link between two tickets. A link type can be one of the
following:

  * DependsOn
  * DependedOnBy
  * RefersTo
  * ReferredToBy
  * HasMember
  * MemberOf

Should I have just gone ahead and used LWP or would I still have the
same problem?


Landon Stewart LandonStewart@Gmail.com

Hi Landon,

HasMember & MemberOf should create a Parent/Child relationship shouldn’t
it?

Yes, those are the internal names, for better or worse. I don’t know
about the internals of RT::Client::REST, but RT’s REST interface will
accept Parent/Child types too and do the right thing.

Thomas

Hi Landon,

HasMember & MemberOf should create a Parent/Child relationship shouldn’t
it?

Yes, those are the internal names, for better or worse. I don’t know
about the internals of RT::Client::REST, but RT’s REST interface will
accept Parent/Child types too and do the right thing.

Thomas

This is great to hear. Thanks very much to all of you for your replies.

Landon Stewart LandonStewart@Gmail.com