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 2 check-box fields?

Hi,

I have 2 check-box value on single checkbox custom field and want validate both of them in a transition. EX: When I tried to move transition it should throw error message “Both Approval needed” and if "Data Eng Approved” given Approval then it should show DBA Approval required vice versa. How to validate 2 check box values?  

image2016-5-3 11:11:19.png 

 

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

In a simple scripted validator the following will be true if both are checked:

cfValues["SQL-Sch..."]*.value == ["Data Eng", "DBA"]

So you just need to add the rest of your logic.

How would this be used in Atlassian Cloud?  I tried using the full scripted validator in the answer above but received errors.

Currently I have it set up as below but getting error: Field Test Checklist with actual value 'Tie shoes' does not match regular expression ["Tie shoes", "Put on coat"]

image2017-1-6 17:5:27.png

TAGS
Community showcase
Posted in Europe

Chris Cooke, Tom Harris, Old Street Solutions: Video online

Thanks to Tom Harris and Chris Cooke from Old Street Solutions for their intesting demo (No Slides!) about how they provide Jira Reporting for Everyone! They even have a public playground, if you don...

2 views 0 0
View post

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