Greetings to all!
I'm aiming to implement conditional validation whereby, upon transitioning an issue from "Open" to "In-progress", validation must occur to confirm that either the "component" field or the "sprint" field has been filled out. If either of these fields has not been filled out, the transition should not be allowed.
Can someone help me achieve this.
Thanks in Advance
should the transition be allowed if at least one of the fields has a value, or only if both fields have a value?
If the latter, then you can use a Field Required Validator.
If the former, you need to create a Build-your-own Validator with this Jira expression:
!!issue.components && issue.components.length > 0 || !!issue.sprint
Thanks David, transition should be allowed if at least one of the fields has a value. proposed solution works as expected !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A little late to the party here but I have used linked Conditions to evaluate responses to several fields. These are AND and OR conditions.
Since conditions do not through up any Validation error messages, I am looking to achieve the same thing using Validation rules. However, I cannot see how to chain AND validations and OR validations together using the standard offerings.
If, as I suspect, I have to write a simple script, so be it. But how do i do this within the Workflows editor?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
On the transition from "Open" to "In-progress" you can add a:
Condition
OR
Validator
The difference is that with a condition, the transition is not visible until the fields are filled out (which may lead to confusion as to why one cannot transition from one status to another) whereas a validator allows you to indicate which fields are required and add a transition screen with those fields which allows your user to fill them out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Dave,
Thank you for the response. We did achieve this individually by adding condition & validator separately on the same transition, I'm actually trying to find out can we achieve both at the same time as a validator by using ScriptRunner or JMWE for Jira cloud.
Regards,
Abhishek.
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.