Script to collect info from child tickets

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