<p>Changing any objects in preparation section is incorrect.</p>
<p>Regards, Ruslan. From phone.</p>
<div class="gmail_quote">08.09.2011 21:27 пользователь "Kenneth Crocker" <<a href="mailto:kfcrocker@lbl.gov">kfcrocker@lbl.gov</a>> написал:<br type="attribution">> Christopher,<br>> <br>> I have a scrip that does the same thing and I ran into the same problem.<br>
> This is how I resolved the issue:<br>> <br>> 1) Make sure your RT_SiteConfig.pm file has "TransactionBatch" turned on<br>> 2) Put all the code to change other fields, etc. in the "Prep Code" area<br>
> 3) Put the code to change Queues in the "Cleanup Code" area.<br>> 4) Created a second scrip (to notify the AdminCc) that uses the same<br>> Condition as the first, but name it so that it will execute after the first<br>
> one.<br>> <br>> I name all my Notification scrips with "Notify ..." but name all my other<br>> scrips (those that change CF's, ticket data, etc.) with a 1a thru 1d as a<br>> prefix. RT executes scrips in sequence by name.<br>
> <br>> Hope this helps.<br>> <br>> <br>> Kenn<br>> LBNL<br>> <br>> <br>> On Thu, Sep 8, 2011 at 9:46 AM, Christopher Lasater <<a href="mailto:CLasater@taleo.com">CLasater@taleo.com</a>>wrote:<br>
> <br>>> Hi,****<br>>><br>>> I have a queue scrip set up so that if a specific custom field is selected<br>>> the ticket’s Queue will be changed to another Queue.  This seems to be<br>>> working well, but when the ticket is created the Scrip for Notify AdminCC on<br>
>> create does not seem to be using the new Queue’s AdminCC.  I have checked<br>>> the debug logs and the queue changing scrip runs before the Notify AdminCC<br>>> scrip and after everything is done, the AdminCC’s are correct, its just that<br>
>> the change is not finalized till all the Scrips are run.  ****<br>>><br>>> ** **<br>>><br>>> Is there a way to commit the change at the end of a scrip?  Or a way to get<br>>> around this?****<br>
>><br>>>                Christopher Lasater****<br>>><br>>> --------<br>>> RT Training Sessions (<a href="http://bestpractical.com/services/training.html">http://bestpractical.com/services/training.html</a>)<br>
>> *  Chicago, IL, USA — September 26 & 27, 2011<br>>> *  San Francisco, CA, USA — October 18 & 19, 2011<br>>> *  Washington DC, USA — October 31 & November 1, 2011<br>>> *  Melbourne VIC, Australia — November 28 & 29, 2011<br>
>> *  Barcelona, Spain — November 28 & 29, 2011<br>>><br></div>