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,556,869
Community Members
 
Community Events
184
Community Groups

Field Required Validator - Option to select one or another value

Edited

1. I have 1 field with multiple values to pick from

2. Out of 5 options, 2 values are OK for the JIRA to move forward "Completed" or "Bypassed"

3. I'm using the field required validator to ensure that one of those values are selected before the JIRA can move forward.

How do I configure the Field Required Validator to determine whether "Completed" OR "Bypassed" is selected so it's validated?

One of the options when setting this up says: 

  • Option [A,B] would allow a selection of options: Option A, Option B or both.

So I tried numerous combinations "Completed,Bypassed"; "[Completed,Bypassed]"; "Completed, Bypassed", etc. and same error. I must be missing something simple...

Is there a workaround if that's not possible without having to pay for an add-on?

Thanks,

Lillian

1 answer

1 accepted

4 votes
Answer accepted
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 13, 2019

Hi Lillian,

I was a bit confused to start here.  The Field Required validator only checks to see if the field has a value of any kind.  In your description though, it looks like you're trying to use the Regular Expression Check validator instead.  

I think the regex validator can be used here, but I agree that the example posted there is confusing and misleading a bit.  That example would work for single Character matching like A or B in regex.  However for multicharacter matching, I think you'll need to use a value such as

Completed|Bypassed

In the validator.  This would match either or both values, but it would still reject any issues that try this transition and contain any other value for a multiselect field.  Try this.  Does this help?  Or are you also looking to validated the field if it contains either of the valid options and some other options?

Andy

Thanks Andy! I just tried with | and came back with an error: "It seems that you have tried to perform an illegal workflow operation."... any other suggestions?

No wait it worked!!!!! WOOHOO!!!! Sorry there was another validator and the JIRA was getting caught on that! This worked!!! Andy thanks SO much!!! Yay!! :D Much appreciated!!

Like # people like this
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 15, 2019

Glad to hear that helped.

If this resolves your issue, please click the Accept Answer button.  This will help other users that might search this topic to find this solution a bit easier.

Andy

Like # people like this

So glad I found this. Thanks for the | tip

To complete your answer you have to use this format: 

(Completed|Bypassed)

there you go

cheers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events