Forums

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

Automation fails on regex containing square brackets

Els Bassant
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 28, 2025

I'm trying to create an automation that checks whether the last comment contains a specific regular expression. If the comment matches the regex the issue should transition.

The comment I am checking for has the following format:

Change submitted in 123456 (open in [link title|http://example.com] )

No matter what I do, I cannot get the regex to work with the square brackets in the link. I can get it to match everything before the brackets, between the brackets, or after the brackets. But not the brackets themselves.

Ideally I'd like to check for the full expression, including the link. Help appreciated.

1 answer

2 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 28, 2025

Hi @Els Bassant 

Without seeing your complete rule, the action, and the regex, I wonder...

Have you tried escaping the square brackets to prevent any detection as a character class?

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events