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:


And these simply cough up the same ticket I started with:


Any ideas?

Thank you,