Forums

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

Validate a checkbox in the workflow

susann.ivarsson@dahl.se December 16, 2020

Hi,

I have a checkbox including twelve options and I want to validate that all the options are marked before transition the Jira issue to close. I have tryid to use the validator Fields Required but it's not working as I need it to. If no option is marked it's works but its enough to mark one when the transition is done. I need all the options to be validated to marked before transition.

 

2 answers

0 votes
Thorsten Letschert _Decadis AG_
Atlassian Partner
January 3, 2021

Hi susann.ivarsson@dahl.se ,

What you're trying to achieve is indeed not possible out of the box.

In order to do so, you'll need a 3rd party app extending your list of available validators. The workflow category on the Atlassian Marketplace is the right place to head to: https://marketplace.atlassian.com/search?category=Workflow

In Jira Workflow Toolbox being one among those, you can specify that all options of a multi-option field must be selected or checked.

Disclaimer: I'm part of the team behind the aforementioned app.

Cheers
Thorsten

susann.ivarsson@dahl.se January 4, 2021

Hi, 

We use Scriprunner and I have tryid to create a script to validate that all the options are checked in my checkbox but it's not working as I aspected. It's enough to check one option to transition the issue but I need all the options to be validated. I got twelve options.

0 votes
Charlie Marriott
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 21, 2020

Hi susann_ivarsson_dahl_se,

Thanks so much for your question.

I had a look into this for you and also ran into the same limitation that you found: that you are unable to specify which checkboxes are required before the issue can be transitioned.

One option would be to split the required checkboxes out into individual fields with single options, or using radio buttons with ‘yes/no’ options.

It looks like there is another community post that has solved a similar use case to yours. Have a look to see if that solution might work for you as well.

Thank you,

Charlie

Jira Service Management

ps. if this answer is correct, please select the ‘accept answer’ button

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events