Thanks
This code added to the original script (OpenDependantsOnResolve) works great
Thank You!
$l->BaseObj->SetStatus('open')
unless $l->BaseObj->HasUnresolvedDependencies;
Condition: On Status Change
Action: User Defined
Template: Global Template Blank
Customer action: return 1;
Custom action cleanup code:
return 1 if ($self->TransactionObj->NewValue !~
/^(?:resolved|deleted|rejected)$/);
my $DepOnBy = $self->TicketObj->DependedOnBy;
while( my $l = $DepOnBy->Next ) {
next unless( $l->BaseURI->IsLocal );
next unless( $l->BaseObj->Status =~ /^(?:new|open|stalled)$/ );
# here you can add any action
# see also example below
$l->BaseObj->SetStatus('open')
unless $l->BaseObj->HasUnresolvedDependencies;
}
$DepOnBy = undef;
return 1;
--
View this message in context:
http://requesttracker.8502.n7.nabble.com/Open-Ticket-On-Resolve-Of-Dependants-tp52605p52701.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
--
RT training in Amsterdam, March 20-21:
http://bestpractical.com/services/training.html
Help improve RT by taking our user survey:
https://www.surveymonkey.com/s/N23JW9T