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
Hello! I am attempting to locate a behavior script for scriptrunner for Jira Cloud.
Use case scenario:
When an issue is set to highest or high priority, we want to require another field to be filled in that is getting missed. I'm hoping this is possible with behaviors for scriptrunner in Jira Cloud, but I have been unsuccessful in writing or locating a script that will do this.
Thanks in advance!
Hello @Jane Ellis
Are you trying to set the field to be required while the issue is being created? Or are you talking about the Priority being changed after the issue has been created?
Evaluation of other fields Required state is not evaluated when the issue is being edited since all editing is now done in Jira Cloud inline. Only the field that is being edited can be evaluated during the Edit operation to see if it is required.
Behaviours can be used to conditionally make a field Required only in the Create Issue dialog.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you try a script similar to the example provided in the Behaviours documentation?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have accomplished this using jira workflow conditions and validators.
If my condition checkbox called "needs ops review" is checked, then the field "ops reviewer" is required (validator).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I should clarify -- if they don't provide the required field then the workflow step won't get completed (in your case, "create issue."
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.