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

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

validator or conditional check to have minimum 2 values in custom field with multiple input

Hi Team,

 

Could you please guide on how i can define a conditional check or validator before submission of request on having 2 values inputs at least in multiple input custom field with a comma as separator.

 i.e 

abc,cde 

 

If value given is only 1 than it should not allow the action to submit the request.

1 answer

0 votes

Are you on Jira server/Data Center our Jira Cloud?

 Also, what is the field type of the field you want to check?

Hi, David! I'd like to enjoy the ride here... I also need to do the same.

I have a multi-select user picker to set approvers. It's Jira Cloud.

I need to be sure that user chooses at least 2 approvers. Is that possible with regex validator? What would you suggest?

I don't believe it's possible with a "regex" validator. But you can easily do this with JMWE's Build-your-own Validator with this code:

!!issue.customfield_10500 && issue.customfield_10500.length >= 2

where you need to replace  customfield_10500 with the field ID of your multi-user picker custom field.

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

580 views 5 21
Read article

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