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

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