On Tue, Apr 10, 2012 at 12:12 PM, Ruslan Zakirov <span dir="ltr"><<a href="mailto:ruz@bestpractical.com">ruz@bestpractical.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">>> # Find the custom field "myCustom"<br>
>> my $myCustom =  $ticket->FirstCustomFieldValue("myCustom");<br>
>> $RT::Logger->debug("custom field = ". $myCustom);<br>
>><br>
>> but it never gets the value.  Is there somewhere else I need to look for<br>
>> that custom field?  Is it in the TransactionObj instead?  Am I going to have<br>
>> to use TransactionBatch for this?<br>
>><br>
> If anybody cares about this, yes, I had to use TransactionBatch.<br>
<br>
</div>Status is set before custom field. Transaction batch delays scrip<br>
execution to the point where both changes are seen on the ticket.</blockquote></div><br>What surprised me about this is that I didn't have to change the RT::Condition or the RT::Action subclasses I used, I only had to enable TransactionBatch in the config, and in initialdata (for this testing phase, I clean the database and do another make initdb each time) add "Stage => 'TransactionBatch'" to the @Scrips definition.<div>
<br clear="all"><div><br></div>-- <br><a href="http://www.linkedin.com/in/paultomblin">http://www.linkedin.com/in/paultomblin</a><br><a href="http://careers.stackoverflow.com/ptomblin">http://careers.stackoverflow.com/ptomblin</a><br>
<br>
</div>