Yes, that was happening in TransactionCreate. 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). I dont know why this is happening.
2010/4/16 Raed El-Hames <[email protected]> > Are you creating the ticket from the web interface and that custom field > exist in the form; > 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 ?? > Is that what is happening?? > If its , I would suggest you change your scrip condition to Userdefined and > look for Custom Field create or change > something similar to > http://wiki.bestpractical.com/view/OnCustomFieldValueChange > > Regards; > Roy > > > Sergio Charpinel Jr. wrote: > >> Hi, >> >> I'm trying to change a CustomField value in OnCreate event. >> 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. >> >> So, I'm trying to use TransactionBatch stage, but the field is not >> changed. And the script is get executed. >> >> What am I doing wrong?? >> Thanks for any help. >> >> -- >> Sergio Roberto Charpinel Jr. >> > -- Sergio Roberto Charpinel Jr.
Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
