I user Jira Cloud. I have a field in bug screen, which is not required till "testing" state. When a user wants to move it to next state, I should make the field required and user is not allowed to move it to next state unless he selects a value from the dropdown. I could not find Validators in Workflow JIRA cloud. Any help is appreciated.
Hi @Alekhya and welcome to the Community!
If you can't find validators, that is most likely because you are using a team managed project. That does indeed limit your options a bit.
You can add a way to check whether your select field is filled out on a transition in team managed projects using a transition rule.
Navigate to your project settings > issue types > bug and hit the edit workflow button you see near the top of your screen. Then select the transition that goes to the done status and on the right hand side click the + sign next to RULES
Choose the rule that lets you restrict to when a field is a specific value. Select your dropdown field, set the criteria to text / doesn't match and leave the text field empty. That should give you a rule like this:
There is a caveat here, though: while the rule may correctly validate that the field is empty, there is no good feedback to your users as to why they cannot transition the issue. It is also not possible to add a transition screen here. So before you implement this in real life, test this out for yourself to make sure you are happy with the flow.
If not, using company managed projects and the advanced workflow capabilities there may turn out to be a better solution.
Hope this helps!
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.