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.
Join PM Evangelist, Axel Sooriah, & Product Ops. Consultant & Advisor, Jenny Wanger, as they unpack the role of product ops and discuss key takeaways in Atlassian’s ‘The Product Ops Mission’ guide. They’ll answer your questions live on May 6 at 9:00am PT.
Register here ⬇️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.