[rt-users] Open Ticket On Resolve Of Dependants?

Kevin kevin.comer at veracitypayments.com
Tue Feb 12 14:29:25 EST 2013


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.



More information about the rt-users mailing list