Hi All,
Please help to develop Script runner query for making a field mandatory based on Resolution value like "Done" in Jira cloud.
Use case :
If Resolution is Done , I want to make a custom field mandatory and for any other value its should be optional.
I did this recently setting it as a condition on the a transition to Closed and should get you in the right direction.
We wanted Sprint to be optional upon an issue transitioning to Closed if the Resolution was either Canceled or Duplicate.
(issue.customfield_10033 != null && issue.resolution?.name != "Canceled" || issue.resolution?.name == "Canceled")
||
(issue.customfield_10033 != null && issue.resolution?.name != "Duplicate" || issue.resolution?.name == "Duplicate")
Hope this helps,
John
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.