[rt-users] Action Upon Approval

Todd Chapman rt at chaka.net
Mon Dec 13 15:07:46 EST 2004


Can you get a simple scrip to work? Such as:

Condition: User Defined
Action: User Defined
Template: Global tempalte: Blank
Stage: TransactionCreate
Custom condition:

my $trans = $self->TransactionObj->Type;
if ($trans eq 'Status' && $self->TransactionObj->NewValue =~ /(resolved|rejected|deleted)/i) { 
  return 1; 
}

Custom action preparation code:

1;

Custom action cleanup code:

$RT::Logger->debug("Resolve action running...");

On Mon, Dec 13, 2004 at 03:38:49PM -0500, Ben Blakely wrote:
> Hey Todd,
> 
> It seems to be a problem with getting an action to be performed after
> the child ( approval ticket ) is resolved. Im taking your approach,
> when the approval ticket is resolved id like to have another ticket
> created in another queue.
> 
> 
> Ben
> 



More information about the rt-users mailing list