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
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
What's the best way to make a field required depending on a condition to another field?
I want to require the field Root-Cause-Analysis, but only for Type = Incident, with priority 1, 2, 3
So: Not required for other ticket-types, and not for priority 4.
Hi,
If you are on a server, not cloud, the Scriptrunner addon allows you this feature.
You can use behaviour and a script on a field in behaviour to achieve what you want. I've used this, and it works great. Then you get the red * on the field when it is required too, instead of error message after you send the form - if you you use validator in the workflow.
Scriptrunner: https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner/server/overview
Behaviours doc: https://scriptrunner.adaptavist.com/latest/jira/behaviours-overview.html
For code to set required based on another field - se answer in: https://community.atlassian.com/t5/Answers-Developer-Questions/ScriptRunner-Issues-with-required-custom-field-based-on-another/qaq-p/546310
Hope this helps. Note that Behaviours are not available for Cloud - you have to use a different addon, or the validator in Workflow transition.
I'm on a server, so I'll try this on some friday afternoon... thank you!
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.
Hi @Moin
I am sorry, but I do not have much hands-on experience with the different workflow app's for Jira Cloud.
Since the original question on this page is marked as answered, I would recommend you to create a new question in this Community asking for suggestions to solve the needs you have in Jira Cloud. I am certain that there are others in the Community that have experience in what you are after. You might get more views from people that can help if you have a unanswered question.
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.
I am new to Script Editor. I added the script, but doesn't look like it is working.
I added new behavior, added the field(radio button) and added Service side script. My environment is JIRA server. Any help is much appreciated. I am missing any configuration setting for the 1st time use?
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.