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

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 in Jira

We want to hear from you! How do you use Slack and Atlassian together?

Hi Everyone! My name is Mina and I am on Atlassian’s Ecosystems Marketing team. Our team is focused on our technology partnerships and marketplace apps. One of Atlassian’s partners is Slack, who ...

85 views 1 5
Join discussion

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