[rt-users] Help with Scrip for child / dependent tickets

Christian Loos cloos at netcologne.de
Fri May 22 07:32:49 EDT 2015


this is what we use:

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->SetStatus('open') unless $dep->HasUnresolvedDependencies;


Am 22.05.2015 um 11:35 schrieb Jon Witts:
> Hi Aaron,
> Thanks for sharing your scrip. I think your scrip is similar but not
> quite what I was wanting to do. Yours seems hardcoded to only check for
> two child tickets. I would like my scrip to loop through all child
> tickets and change the status of the parent if all child tickets are
> resolved…
> Does anyone have any pointers? I can’t see where this is falling down.
> Thanks,
> Jon

More information about the rt-users mailing list