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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,467,090
Community Members
 
Community Events
176
Community Groups

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

Atlassian Community Events