Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Transition Validator - Making two values as mandatory in "Fix Versions" field

gunjan_ahuja
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 26, 2020

Hi All,

There is one challenge we are facing, we want to make "Fix Versions" to be filled with at least two values as mandatory in the workflow before any status change

For example - One should be treated as PRODUCT RELEASE VERSION, and others should be API RELEASE VERSION (which could be single or multiple). But at least we need two values as input (defined in the fix version list) before doing any transition.

We have implemented "Field Required Validator" from "Validators" to accomplish the field must be present while transitioning. Now, we need to make an additional validation to have a minimum of two values before making any workflow transitions on a certain state of the workflow.

In addition, we have "Field has single value Validator" but this will do the vice-versa of what we need. Is there any way to perform the required validations in JIRA.

Please let me know in case of any further questions. Any help will be appreciated.  

 

1 answer

1 vote
Oliver Siebenmarck _Polymetis Apps_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 26, 2020

Hi @gunjan_ahuja,

I do not believe you can do that with out-of-the-box Jira Cloud, but it is rather easy to do if you have an app that allows using Jira Expressions in Validators, such as Cloud Workflows.

Whatever app you pick, here's the expression you would use:

issue.fixVersions.length > 1

Which does nothing more than check that more than two fix versions have been added to that issue. Of course, you could get all fancy and check for specific combination, but the above should meet your requirement perfectly. With Cloud Workflows, you can even define a custom error message, which I very much recommend you do. 

Hope that helps,
  Oliver

 

Full disclosure: I work for Jodocus, the Vendor who created Cloud Workflows. Let me know if you need any help getting started.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events