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
(?i)(.*{{issue.key}}.*) is the appropriate answer here. The response body was not in the correct format.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am trying to use the regular expression in a match function using a variable:
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).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.