After researching the community forum I haven't been able to find a use case that quite matches what I'm trying to do.
Use Case
I have a single work item type associated with a single workflow. There's a transition between my Being Planned status and Waiting for Approval status. Some fields are always required, which I've specified in the transition Validators. This part is working well as-is.
Some fields, however, are conditionally required when the corresponding custom field is set to a specific value. For instance, when my field 'User Notification Required?' is set to 'Yes', then make field 1 required, otherwise field 1 is not required.
Question
Is it possible to prevent a user from transitioning an issue based on my use case? Please note I'm only interested in using Jira native functionality (please no 3rd party apps).
Dear @jessica_huebner , thanks for the interesting question.
If you have JMWE app, you can user "Field Requires Vaildator" with the condition, like the provided screen.
If you don't have third-party apps at all, you'd need to redesign the workflow slightly using multiple transitions and validators.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jessica,
I usually do this with two different transitions between the statues. One transition would have a Value Field condition where User Notification Required? = Yes and one where it has two conditions where the same field is empty or it = No.
For the first transition you would add ALL of the validators for required fields. For the second one, you would just have the validators for the standard fields.
Hope that makes sense.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @jessica_huebner
This is a very interesting question, and I'm sure it can't be done directly from the create screen, it is possible using conditional formatting it Service Management forms. But I am assuming this is a software project?
As you don't want to use any 3rd party app (I try not to use / suggest them either), you could try and automation.
I would set it up like this:
1. Trigger: issue transitioned from 'being planned' to 'waiting for approval' - If 'user notification' is set to 'yes' and 'field 1' is empty - Then transition back to previous status and comment:
"As 'user notification' is set to yes, you need to set field 1 before you can transition the item"
And depending on what you prefer, the comment could be a slack notification, or an email. To keep the ticket tidier.
Let me know what you think.
Aaron.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.