Multi checkbox validation

Hi,

I want to create an expression to validate a multicheckbox in a workflow screen.

I'm able to to do an OR but I'm not succeeding in creating AND

ex. (This box is checked|This is box2 is checked)... How do I do AND ? 

1 answer

1 accepted

This widget could not be displayed.

This isn't possible through the base functionality. It requires the use of a plugin. The best one I know of for this purpose if the Scriptrunner plugin. 

Basically resolving this would require building a custom validation script using their plugin functionality. 

I'm not that familiar with the scripting itself, but here are some resources that might help. 

https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner/cloud/overview

https://scriptrunner.adaptavist.com/5.2.1/jira/recipes/workflow/validators/simple-scripted-validators.html#_validating_a_multi_select_option_is_selected

In particular, I think you will want to add a validator script with the following: cfValues['My Multi Select']*.value.contains("Some value")

This will need to be modified to fit your needs.

Ok, is that possible to use in the Cloud version? 

I see it is available for Cloud. Thank you Kian

Just a comment if anyone follows this, I did not succeed in using  scriptrunner cloud version for this. Examples I found were all for server version. Only solution I find is to split the multi checkboxes to single checkboxes and add validator to them one by one

Sorry, I didn't realize you were using cloud! 

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

575 views 25 15
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you