How to validate 2 check-box fields?


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

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Friday in United States

Confluence Security Advisory

Good morning Members, Not sure if you are aware. Please read the following: More details: https://co...

43 views 1 0
View post

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