The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new 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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events