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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,351
Community Members
 
Community Events
185
Community Groups

How to validate checkbox Jira cloud

Hello,

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

Thanks

2 answers

1 accepted

0 votes
Answer accepted
Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Dec 13, 2021

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.

Regards,

Kristian

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

0 votes
Tessa Tuteleers
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
TAGS
AUG Leaders

Atlassian Community Events