Hello,
For a given status :
How to ignore the validator when the user set a given resolution value within the screen.
I mean, I want the user to be able to go through the transition when he set the resolution to a given value in the screen (while the error message is currently displayed because the field is empty).
Thank you in advance.
You can create conditional validations with Jira expression-based validator. There are several options available on the Atlassian marketplace.
I am from Forgappify, and we developed Jira Expression Validator, which is part of the Workflow Building Blocks for Jira app. The expression you might use could look something like this:
issue.resolution != null && issue.resolution.name == 'Fixed'
? true
: issue.customfield_xxxxx != null
You need to change the ID of the custom field to a valid one. In the editor, after 'issue.', start typing the name of the field, and you will get suggestions with the correct value.
I am leaving a link to the app's documentation if you are interested.
I hope it will help.
Cheers
Hi there,
To make sure I understand - you are looking for the validator to be ignored if a resolution is set on the screen that shows during the transition?
What is the behavior of this workflow status and transition currently?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for answering.
Yes.
At the moment, the user user have to provide a value to pass the validator while this value is not needed, because not relevant for the chosen resolution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah okay - so this is a separate field with a validator, not the resolution field. And this validator needs to be skipped depending on option in the resolution field at the time of the transition?
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.
Is the resolution being set at this same screen or is it being set before this particular transition? It may also help if you were to share an image of the workflow.
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.