Forums

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

Validating all checkboxes checked using JMWE in Jira Cloud

Katherine Lord March 6, 2023

I have a checkbox field with 3 options. I would like to create a validator that only allows the transition to happen if all of the options are checked. Any ideas on how I can do this?

Thanks in advance.

2 answers

2 votes
David Fischer
Community Champion
March 7, 2023

@Katherine Lord 

unfortunately, third-party Validators such as those offered by JMWE are limited to Atlassian's Jira Expressions language, and that language doesn't allow listing available options of a Checkboxes field.

However, if you are willing to hardcode the number of available options (in your example, 3), then you can create a Build-your-own Validator with this code:

!!issue.customfield_12345 && issue.customfield_12345.length == 3

where you'll replace "customfield_12345" with the custom field ID of your checkboxes field (which you can find on the "Issue Fields" help tab below the editor)

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