Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


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!


Regex format for case-insensitivity in Automation for Jira


I am using the new Automation for Jira functionality (used to be a 3rd party plugin) to use regex to parse a comment which is created by email. Once parsed, a transition should occur. 

I am using an If block to compare two values where {{comment.body}} contains regex.

The docs indicate that regex expressions should look like this:


What I need to do is to add a /i flag for case insensitivity. All attempts seem to fail. Should there be single or double quotes around the expression?

My regex looks like this in the field (fails):


If I remove the trailing flags, it works, but case-sensitive.

The visual summary on the left side looks like this:


What am I doing wrong? Should I wrap the expression in single or double quotes? Some kind of Java (or other) flavor of regex delimiters?






3 answers

1 accepted

1 vote
Answer accepted
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Aug 07, 2020

Hi @Mike Tocci 


So basically we are using Java regex flavour. To make a case insensitive match, prefix your pattern with (?i)


Using the example from the docs, to make it case insensitive you'd write (?i)(Jira|BitBucket|Confluence) instead.


Hope that helps.

Hi @Eric -- this is exactly the answer I was looking for. Thanks!!

For me, a regex with the case insensitive flag worked using ?i at the end of the regex.

Hi @Eric 

I am struggling with your solution. 

In general I am trying to create an automation which should remain an issue resolved if a customer only answers something like "thanks".

Otherwise, e.g. if something in the solution does not work and the customer gets back to us the issue should be re-opened.

Please find more details here 

Since today I looks like it is kind of working however facing a issues with the case sensitive: 


currently when the ticket as resolved and the customer answer with "thanks" the ticket will remain closed.


As soon as I add the (?i) in front of the regex the ticket will reopen - any idea what I am doing wrong ? 

so my regex is: 



no clue what I did wrong but it works today

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events