[rt-users] Can Autoreply execute after custom scrip ?

tanguy.lagroy at bt.com tanguy.lagroy at bt.com
Mon Nov 8 08:54:15 EST 2010


Finally, I resolve the issue.

I change Transaction Create stage to Transaction Batch on default Autoreply scrip.
It works fine now, the Autoreply scrip is executed after the "Add group member as requestor" custom scrip.

As wiki said in http://wiki.bestpractical.com/view/TransactionBatchStage :

"In two words: If Scrip<http://wiki.bestpractical.com/view/Scrip> in batch stage then it's applied only when all transactions of the user's request have been created."

Thanks Roy for your help.
Tanguy

From: Lagroy De Croutte,T,Tanguy R
Sent: lundi 8 novembre 2010 14:34
To: 'Raed El-Hames'; rt-users at lists.bestpractical.com
Subject: RE: Can Autoreply execute after custom scrip ?

Thanks Roy, but it doesn't working.
Scrip "2-Autoreply"  executes before "1-Add group member"

Workaround below works but it's not really good :
The autoreply is executed after the ticket is opened, with following condition

return 0 unless $self->TransactionObj->Type eq "Status";
return 0 unless $self->TransactionObj->NewValue eq "open";
return 0 unless $self->TransactionObj->OldValue eq "new";
return 0 unless $self->TransactionObj->Creator ne 1;
return 1;


Tanguy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20101108/0d9e2a21/attachment.htm>


More information about the rt-users mailing list