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'; [email protected]
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

Reply via email to