Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

make each check box mandatory in multi checkbox field jira

NehaNagori June 12, 2017

I have a multi checkbox that i am using in workflow transitions. 

currently, on clicking on one check box is sufficient for transitioning a issue. But I want While transitioning a issue, All check boxes to be clicked(as a mandatory field). 

2 answers

1 vote
Aashutosh Kumar
Contributor
October 21, 2021

Too Late Answer, useful for newcomers.
All CheckBox Options can be marked Required, if using Extension for Jira Service Management .
Add CheckBox Field in Customer Form Extensions, and set validator = at least x values required: "Number of Checkbox options"

 

Extension for Jira Service Management 

Project Settings -> Customer Form Extension -> Request Type -> Check Box Field -> Validator -> atleast x values required -> "Number of Checkbox options"

c.png

1 vote
Nic Brough -Adaptavist-
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.
June 12, 2017

If they all have to be mandatory, technically you don't need the field.  You can assume that the user has ticked everything because they're using the transition.

If you do insist on doing this, then you will need to find or write some code for it.  This could get quite "interesting".  Technically, you could just check "number of selected options = x", but what happens if the list changes?  You suddenly have a load of issues that don't match, although they did when they were transitioned.

NehaNagori June 20, 2017

Can we implement this through scripts?

Nic Brough -Adaptavist-
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.
June 20, 2017

Examples of validators can be found under https://scriptrunner.adaptavist.com/4.3.1/jira/recipes/workflow.html (I went higher, because you might prefer a condition instead - a validator will halt a user part way through a transition, whereas a condition will stop them using the transition at all)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events