Can Autoreply execute after custom scrip?

Dear All,

I’m facing a problem with default autoreply scrip, with RT 3.8.7 on Debian Lenny.
I’ve got a custom scrip which auto add all members of a group as requestor, when the first requestor is member of this group.
This scrip works fine.
Unfortunately, the autoreply scrip occur before the “auto add group member as requestor” scrip, so the notification is sent to only one requestor. Not all.

Is there a way to launch the autoreply scrip after automatically adding the requestors ?

Thank you for your help
Best regards,

Tanguy LAGROY
Département NSS/IPOC
BT Services
Email : tanguy.lagroy@bt.com

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;

TanguyFrom: Raed El-Hames [mailto:Raed.El-Hames@daisygroupplc.com]
Sent: lundi 8 novembre 2010 14:22
To: Lagroy De Croutte,T,Tanguy R; rt-users@lists.bestpractical.com
Subject: RE: Can Autoreply execute after custom scrip ?

Tanguy:

As far as I know the scrips executes in their description alphabetical order.
So try to rename your custom scrip to 1-whatever name you have , and hopefully it should run before the auto reply.

Regards;
Roy

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 Scriphttp://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.
TanguyFrom: Lagroy De Croutte,T,Tanguy R
Sent: lundi 8 novembre 2010 14:34
To: ‘Raed El-Hames’; rt-users@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