Forums

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

Workflow Validator Regex not working

Uriah Ryken
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!
July 13, 2020

I am having trouble getting regular expressions working in Jira Workflow Validators. I am trying to get Issue Checkbox workflow control validation as per this link, but no matter what I try, I cannot get a regex to match with the Field "Checklist Content YAML".

Here is an example of an error message I get when doing a regex .*text.* as a test expression which to my mind should definitely trigger a match on the YAML data.

Untitled.png

Is there some setting somewhere I need to enable regex or something? I have tried the recommended expression "(?s).*- text: first item\W*checked: true.*" to no avail, and many other regex expressions which should match fine, and some which would not match in case it was a logic thing. Everything I try gives me an error like the above one when transitioning issues with a regex validation on it.

Any ideas?

2 answers

1 accepted

0 votes
Answer accepted
Uriah Ryken
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!
July 15, 2020

After trying again, I managed to get it working. Must have had the regex/checklist name wrong in a few different ways before finally stumbling on the answer.

0 votes
Vikrant Yadav
Community Champion
July 14, 2020

Hi @Uriah Ryken  are you trying to validate checkbox field values via Regex validator ?

 

do you want process, if selected value is selected?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events