Thanks for your answers. <div><br></div><div>Actually, I wanna change a custom field based in a change of another one. So, trying what Raed said, I wrote a Custom Condition to verify if it is a custom condition change.</div>
<div>But I had the same problem.. When I update via Web interface, the Custom Field is changed twice, in TransactionCreate, and in Transactionbatch the scrip is not executed.</div><div><br></div><div>Any ideas?</div><div>
<br><div class="gmail_quote">2010/4/16 Kenneth Crocker <span dir="ltr"><<a href="mailto:kfcrocker@lbl.gov">kfcrocker@lbl.gov</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Sergio,<br><br>Your scrips have different conditions, so they are completely separate transaction. Look at any scrips that are triggered by the status changing to "resolved" and see what is happening to the Custom Fields AND check the stage to see if it is TransactionBatch. Hope this helps.<br>

<br>Kenn<br>LBNL<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Fri, Apr 16, 2010 at 10:12 AM, Sergio Charpinel Jr. <span dir="ltr"><<a href="mailto:sergiocharpinel@gmail.com" target="_blank">sergiocharpinel@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div></div><div class="h5">
Yes, that was happening in TransactionCreate.<div><br></div><div>So, I found people with similar problems that solved this using TransactionBatch, because the scrip is executed later. But, when I change status to resolved, the CustomField does not get changed (in TransactionCreate it was twice).</div>


<div>I dont know why this is happening.</div><div><br><div class="gmail_quote">2010/4/16 Raed El-Hames <span dir="ltr"><<a href="mailto:rfh@vialtus.com" target="_blank">rfh@vialtus.com</a>></span><div><br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
Are you creating the ticket from the web interface and that custom field exist in the form;<br>
Most likely the script is changing it to the value you want, then its changing again to the value given in the form while processing the form ??<br>
Is that what is happening??<br>
If its , I would suggest you change your scrip condition to Userdefined and look for Custom Field create or change<br>
something similar to <a href="http://wiki.bestpractical.com/view/OnCustomFieldValueChange" target="_blank">http://wiki.bestpractical.com/view/OnCustomFieldValueChange</a><br>
<br>
Regards;<br>
Roy<div><div></div><div><br>
<br>
Sergio Charpinel Jr. wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
Hi,<br>
<br>
I'm trying to change a CustomField value in OnCreate event.<br>
I cant use TransactionCreate stage, because when I resolve the ticket via Web Interface, it changes again my custom field value to what it was.<br>
<br>
So, I'm trying to use TransactionBatch stage, but the field is not changed. And the script is get executed.<br>
<br>
What am I doing wrong?? <br>
Thanks for any help.<br>
<br>
-- <br>
Sergio Roberto Charpinel Jr.<br>
</blockquote>
</div></div></blockquote></div></div><br><br clear="all"><br>-- <br>Sergio Roberto Charpinel Jr.<br>
</div>
<br><br></div></div><div class="im">
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.<br>
Buy a copy at <a href="http://rtbook.bestpractical.com" target="_blank">http://rtbook.bestpractical.com</a><br></div></blockquote></div><br>
</blockquote></div><br><br clear="all"><br>-- <br>Sergio Roberto Charpinel Jr.<br>
</div>