RT scrip to Close parent ticket as complete when child is resolved

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.


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;
1 Like

Dear knation,

I have tried the proposed scip and it works flawlessly!

Thanks for your help, very much appreciated.


1 Like