Requirement is that I have two fields. Transition will happen from "to do" to "In progress" if
a. first field is not empty
b. if first filed is filled with "Not Applicable" then second field should not be empty
How can we achieve in Jira
This isn't possible natively using Validators - you'd need to look for an App which can enrich the Validators on offer, allowing for If/Else rules, etc.
There's a range of good Workflow Apps which have these types of extensions - see these listed on the Marketplace.
There are alternatives though!
Have you tried using Conditions?
A Condition dictates whether a transition is available or not - unlike a Validator, which requires an action to happen for it to be successful. See more information on this help page.
Conditions do allow for If/Else and And/Or rules - so, to create your requirement above, go to the Conditions tab on your Workflow and then...
Publish the Workflow, and this should limit the transition's availability based on your requirements.
If it must be a validator, and an App isn't an option, I'd look to do this using...
This would allow you to create the functionality of an If/Else validator. The field would be correctly populated using your logic on each occasion - and you're using that field's value to decide whether the transition is available or not.
---
This might look like this...
^ You could also use the rule to auto-transition the Issue if preferred.
Let us know if one of these options works for you!
Ste
Thank you Stephen for detailed steps.
I tried the steps using "Conditions" as explained above. Somehow for me the "Add Group Conditions" icon is inactive (greyed out). Do i need to do any step to make it active. Please suggest.
Attachment is for our reference.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Strange! I tried this, and found if you add a second condition it becomes available. Could you try this to see if it works in your instance?
Just to clarify on the condition setup from the screenshot above...
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Stephen.
Yes. If I add second condition, it (add group condition) becomes active.
Also, I would like to say, "many Thanks Stephen". I was able to implement the requirement per the steps suggested by you. I tried "Conditions". After implementation, I tested in my personal Jira instance and it worked.
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.
Well , I achieved the 1st case i.e. transition will not happen when if first field is empty. I used transition validator to achieve that. However getting stuck in solving second logic i.e. if first filed is "Not Applicable" then second field should not be empty
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.