I want to use Scriptrunner to change the Priority of an issue to "High" if a certain custom field is set to a specific value and NOT change the Priority if the custom field is set to any other value. Any thoughts on the code? Thanks in advance!
Hello @Michelle Campbell
Welcome to the community.
Is there a reason you need to do that specifically with ScriptRunner? You could easily do it with an Automation rule.
Thanks Trudy. I didn't know it was possible with Automation. I'll look into that - maybe it would be easier than Scriptrunner code. ;-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Automation is generally easier than Scriptrunner code as it is a no-or-low-code solution. Here is an example of a rule you could use:
Trigger: When your custom field is edited
Condition: If your custom field contains value X
Action Edit issue
- Set Field Priority to High
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.