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

2013-02-12 Thread Kevin
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 a

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

2013-02-12 Thread Christian Loos
Hi Kevin, I can't understand that my scrip didn't work for you as we use this scrip in our RT without any problem. If you change your line $l->BaseObj->SetStatus('open'); to $l->BaseObj->SetStatus('open') unless $l->BaseObj->HasUnresolvedDependencies; the parent ticket is only open until all

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

2013-02-07 Thread Kevin
The reason I'm not using the approval process, is in all my attempts to get it working has been for NOT. So I abandoned it to created my own to which works except for the resolve, right now it opens the parent ticket on resolve of the first ticket. I would prefer that it did not change the status

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

2013-02-07 Thread Kevin Falcone
On Wed, Feb 06, 2013 at 09:26:23AM -0500, Kevin Comer wrote: > > Our Process: > 1. Parent Ticket created, & Custom Fields Selected -> > 2. scrip Creates multiple Approval tickets with Specific Subjects -> > 3. When All Approvals are completed, Parent ticket is set to open via > script -> > 4. on S

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

2013-02-06 Thread Kevin Comer
Thanks Christian Our Process: 1. Parent Ticket created, & Custom Fields Selected -> 2. scrip Creates multiple Approval tickets with Specific Subjects -> 3. When All Approvals are completed, Parent ticket is set to open via script -> 4. on Status change to Open of Parent ticket, -> a new Implemen

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

2013-02-06 Thread Christian Loos
Hi Kevin, this scrip open the parent ticket if all dependent are closed: my $deps = $self->TicketObj->DependedOnBy; while( my $link = $deps->Next ) { next unless $link->BaseURI->IsLocal; my $dep = $link->BaseObj; next if $dep->QueueObj->IsInactiveStatus($dep->Status); $dep->SetSta

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

2013-02-05 Thread Kevin Comer
Hello, I am new to Perl and RT Scrips, and I need to set up a scrip that will change the parent ticket from new to open when all dependent tickets have been resolved, or have it perform only on the Subject of one Specific Ticket. I found this script below and it works on the first ticket resolve