On Tue, Apr 10, 2012 at 19:29, Paul Tomblin <[email protected]> wrote:
>
>
> On Mon, Apr 9, 2012 at 3:35 PM, Paul Tomblin <[email protected]> wrote:
>>
>> I have a ScripAction that activates when a ticket is resovled.  If I set a
>> custom field and resolve the ticket on the web site
>> (http://localhost:8080/Ticket/Modify.html?id=1), I'm trying to pull out the
>> new custom field value in the Scrip using
>>
>> # Find the custom field "myCustom"
>> my $myCustom =  $ticket->FirstCustomFieldValue("myCustom");
>> $RT::Logger->debug("custom field = ". $myCustom);
>>
>> but it never gets the value.  Is there somewhere else I need to look for
>> that custom field?  Is it in the TransactionObj instead?  Am I going to have
>> to use TransactionBatch for this?
>>
> If anybody cares about this, yes, I had to use TransactionBatch.

Status is set before custom field. Transaction batch delays scrip
execution to the point where both changes are seen on the ticket.

> --
> http://www.linkedin.com/in/paultomblin
> http://careers.stackoverflow.com/ptomblin
>



-- 
Best regards, Ruslan.

Reply via email to