Hello everyone,
I am trying to add a Regular expression check for the value of "Description" field in the issue. I want to check if the description field contains "PASS" word (case insensitive) then perform certain action. This works if I directly provide "PASS" for the description field with Contains condition but won't accept other cases. I have tried providing different regex such as "(?i)pass" , "/(?i)^pass$/" and many other patterns. Can you please provide the regex for such a case.
Hi @Anirudh Nayak ,
You may try something like below and use the JQL search condition.
Description ~ "PASS*"
OR
Description ~ \"PASS\"
Hi @Anirudh Nayak -- Welcome to the Atlassian Community!
First thing: the rules documentation around regular expressions states it is "based on Java's Pattern class", and others have found not all of the features from that spec work. I find only experimentation confirms what does and does not work.
A work-around would be to force your description with toLowerCase() or toUpperCase() before the match() attempt.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.