Forums

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

Jira Automation Smart values - case insensitive

Andy Rehberger August 22, 2024

I am attempting to match values based on the {{issue.key}} smart value with a regex. I would also like to ignore the case of the {{issue.key}}. I found this article which discusses the same issue, but have not had luck trying multiple different combinations - below is my current regex:

(?i)(.*{{issue.key}}.*)

example issue key: SEC-123

Example value attempting to match: data/sec-123-test

2 answers

0 votes
Andy Rehberger August 22, 2024

(?i)(.*{{issue.key}}.*) is the appropriate answer here. The response body was not in the correct format.

0 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.
August 22, 2024

Hi @Andy Rehberger -- Welcome to the Atlassian Community!

Where are you trying to use that regular expression: in a match (or replaceAll) function, in a condition, or somewhere else?

For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!

Kind regards,
Bill

Andy Rehberger August 22, 2024

I am trying to use the regular expression in a match function using a variable:

 

Screenshot 2024-08-22 at 3.16.02 PM.png

 

Create the variable above and then try to match it to a web response body in the audit log (nothing is returned in the audit log). It works perfectly when the webResponse.body.name has the same capitalization as the issue.key (but that will not always be the case).

 

Screenshot 2024-08-22 at 3.14.16 PM.png

Suggest an answer

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

Atlassian Community Events