I’m using ScriptRunner Behaviours in Jira Cloud.
I have a Behaviour script:
- Applied to On Change and On Load.
- Alter the value of a field via script: getFieldById(“ID”).setValue(“Value”)
On creating an issue, this behaviour script is fired as expected. What I do not expect is the set value action triggers issue updated event. I thought it was modifying the form field in real time, but instead it looks like it called REST API to set the value.
This is causing problem because I have a ScriptRunner listener for issue updated event. The behaviour script is causing the listener to fire prematurely.
How can I fix this? Can Behaviour script not fire issue updated event? I don’t really want to add another custom field just to tell the listener that the update is from behaviour script.