[rt-users] Running scrips

Bryon Baker bbaker at copesan.com
Thu Mar 27 15:18:33 EDT 2014


I tried batch scrips the scrips are also Custom Actions and only fire on Create.

As I explained in the earlier message the commits don't seem to be committed by the time the last scrip tests its prepare and the prepare fails therefore being left out of the commit sequence.

Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726  .  262-783-6261 ext. 2296
bbaker at copesan.com
www.copesan.com
"Servicing North America with Local Care"


-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Kevin Falcone
Sent: Thursday, March 27, 2014 2:07 PM
To: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] Running scrips

On Thu, Mar 27, 2014 at 03:19:56PM +0000, Bryon Baker wrote:
>    The code in the scrips that was updating the CF was in the Commit sub of the custom action.  I
>    move the code from that sub to the Prepare sub.  I am not sure this is best practice for
>    Request Tracker but all is working now.

For the list archives, this is a really bad idea.
Code that runs in the Prepare section of a User Defined Scrip Action will potentially be triggered when clicking Reply or Comment on a ticket, or when visiting the People page of a ticket.  It depends on what the Condition of this Scrip is, but it can be quite dangerous.

As another user suggested, Batch scrips are likely the solution you're seeking.

-kevin



More information about the rt-users mailing list