You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.