Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to validate checkbox Jira cloud


i'm trying to create a scriptrunner validator for a checkbox.

I don't care about the option, because is just one option, i wanna know if the user selected it or not.

This is not working:

issue.customfield_10135.value != null


2 answers

Hi Josep,

I can confirm we have some example snippets for validators located here and the example on line 55 shows an example of how to validate when a checkbox field has a certain valiue set in it and this will help you to create the validator that you require.

I hope this information helps.



hello, that is not working sorry.. that information is incorrect. thankserrrrr.JPG

0 votes
Tessa Tuteleers Community Leader Dec 01, 2021

Hi @Josep Maria Cao Garcia ,

welcome to the community!

If you don't care what option is selected, you can just use the "Field Required Validator".
Then you don't need to script anything.

Please let me know if this does not work for you.

- Tessa

hello, no, because i have to check more fields, for example, if its selected, two more fields are required too, if its not selected, we wont need others fields validators

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

👋 Looking for 15-20 volunteers to test Atlassian training content

Hi everyone! Are you interested in beta testing Atlassian University’s newest (unreleased!) training course? We’re looking for 15-20 volunteers to test our newest training course, Basic reporting...

815 views 24 28
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you