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

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
Published Thursday in Agile

How Scrum works? It starts with training and education

To answer “How scrum works,” most of the teams I've worked with first addressed the question: “where to start?”  That question applies to both implementation and improvements on the Scrum framew...

195 views 3 5
Read article

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