RT-Extension-Conservancy/etc/upgrade/0.3/content
2018-04-19 09:50:38 -04:00

28 lines
1.2 KiB
Perl

#!/usr/bin/env perl
@ScripConditions = (
{ Name => 'On Close With Dependents',
Description => 'Whenever a ticket is closed and other tickets depend on it',
ApplicableTransTypes => 'Status',
ExecModule => 'StatusChangeWithDependents',
Argument => 'dependents > 0; old: initial, active; new: inactive',
},
{ Name => 'On Close Without Dependents',
Description => 'Whenever a ticket is closed and no other tickets depend on it',
ApplicableTransTypes => 'Status',
ExecModule => 'StatusChangeWithDependents',
Argument => 'dependents == 0; old: initial, active; new: inactive',
},
{ Name => 'On Approved With Dependents',
Description => 'Whenever a ticket is an approval and other tickets depend on it',
ApplicableTransTypes => 'Status',
ExecModule => 'StatusChangeWithDependents',
Argument => 'dependents > 0; new: approved',
},
{ Name => 'On Approved Without Dependents',
Description => 'Whenever a ticket is an approval and no other tickets depend on it',
ApplicableTransTypes => 'Status',
ExecModule => 'StatusChangeWithDependents',
Argument => 'dependents == 0; new: approved',
},
);