Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow validator - Regular expression check

Gaurav Gupta
Contributor
March 29, 2023

Hello community members,

For a use case, we need to apply the regular expression check validator in the workflow on a single select field. The field has 3 values:

  • Yes
  • No
  • Not needed

We need the validation to pass if the value is not 'NO'. We have tried the option as suggested in the documentation, [Yes, Not needed], but it does not work, and errors out.

Can someone please help us here?

 

3 answers

2 votes
Christoph Päper
Contributor
February 21, 2024

The in-place documentation still suggests “Option [A, B]” to match either or both, “Option A” and “Option B”, whereas standard regular expressions would have “Option (A|B)” to match either – or in your case “(Yes|Not needed)”.

Robert Zakaryan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 20, 2024

It works, thanks 

1 vote
Tina Xu July 3, 2023

Please try below solutions:

 

Not include string "No"

^((?!No).)*$

Not start with "No"

^(?!No).*$

0 votes
miguel.yoshida May 22, 2023 edited

Hi

try this format:

(Yes, Not needed)

i was also looking for that solution and then i began to search for regular expression examples and that worked for me.

cheers,

MY

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events