Hi All,
I am trying to create a scrip that closes parent ticket as complete when the child ticket is closed as ‘resolved,complete,rejected’.
Do you have any ideas on how i can achieve this? Any help would be greatly appreciated.
Thanks
Hi All,
I am trying to create a scrip that closes parent ticket as complete when the child ticket is closed as ‘resolved,complete,rejected’.
Do you have any ideas on how i can achieve this? Any help would be greatly appreciated.
Thanks
You could make a new condition that looks for status set to resolved/complete/rejected then in the action code of the script you can use some code like this:
my $links = $self->TicketObj->MemberOf;
while ( my $link = $links->Next ) {
my $parent = $link->TargetObj;
$parent->SetStatus( 'resolved' );
}
return 1;
Dear knation,
I have tried the proposed scip and it works flawlessly!
Thanks for your help, very much appreciated.
Ryan