[rt-users] Script to collect info from child tickets
Tyler Harding
tharding at uoregon.edu
Tue Apr 23 18:46:15 EDT 2013
Hello all,
Apologies if this has been answered before, did my best to search and whatnot.
I'm writing a script that pokes around in child tickets. My abridged version of it:
my $Children = $self->TicketObj->Members();
while( my $childTicket = $Children->Next ) {
my $childId = $childTicket->TargetObj->id;
# Do some other stuff here....
}
return 1;
However the above only gives me information about the ticket I started in (i.e. $self->TicketObj). For whatever reason, the following work as anticipated:
$self->TicketObj->MemberOf();
$self->TicketObj->DependsOn();
$self->TicketObj->RefersTo();
And these simply cough up the same ticket I started with:
$self->TicketObj->Members();
$self->TicketObj->DependedOnBy();
$self->TicketObj->ReferredToBy();
Any ideas?
Thank you,
-Tyler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130423/3f34634b/attachment.htm>
More information about the rt-users
mailing list