Hi folks,
i have a huge problem for me.
With my scriptrunner field "Escalation Level" I set an integer to a field which is count up on any time the escalation state is used. So if a new ticket is raised the field is empty. If you escalate once the value is 1 then 2 and so on. Now I create an automation which trigger on changing in this field. There is the first problem....
It never triggers
The second problem for me is that I use an If/else with a comparison condition to this field.
So if the field value is 1 I do some stuff and if the field value is 2 I do different stuff.
{{issue.customfield_10702}}
This is the string I use for the condition
The problem there is that the condition is never true.
Can someone help me?
Best regards,
Stephan
Hi Stephan,
Unfortunately this wont work. The scripted field causes problems when being access by Automation rules: https://codebarrel.atlassian.net/browse/AUT-879
We had a look at making this work, but unfortunately it's APIs deep inside Jira's JSON serialization that can throw errors so we can't listen for field changes.
I think for this scenario the best option would be the to do just do you if/else comparison with a ScriptRunner script. We're not expert on this, but I'm sure Adaptavist can help you out!
Another option might also be to increase the field with an Automation rule in the first place using our 'increment' function: https://docs.codebarrel.io/automation/smart-fields/math-functions.html
Cheers,
Andreas
Hi Andreas,
thanks for that quick response.
I change my configuration so that it is running 100 % with Automation 4 Jira.
Now it works fine for me :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.