Hi,
We´ve Jira Cloud, in automation rule we need get exact string match of summary from lookup with JQL I tried "\"textfunny data\"" to extract a only issue with this summary but didntwork and the result of lookup get a list with diferents issues ["textfunny data", textfunny data 2", "textfunny data 3"] but I neen only "textfunny data"
Is possible that I validate the summary in a loop with regex validation, but how I would build it?
Regards
Thanks
Hi @Angel
So it seems like you're accessing the {{lookupIssues.summary}} smart value, but I need to ask, what do you want to do when you find the "right" summary?
If you're trying to validate that a particular issue has that exact summary and then do something to that issue, then instead of a Lookup, you probably want to use an Advanced Branching on your JQL query, which will then let you do a exact regular expression match against the summary, and if successful, then do what you want to do, like so:
Hi @Angel
Yes, it's possible to filter for an exact match of the issue summary in a loop using regex inside an automation rule. You're right that the JQL doesn't support exact phrase matching out-of-the-box for the summary field with full accuracy, but a good workaround is to use a smart value condition inside a For Each loop after a Lookup Issues action.
In your case, after performing the lookup, you can loop through the issues and use a condition like this:
{{issue.summary.match("^textfunny data$")}}
This regex ensures the summary exactly matches "textfunny data" — beginning (^) to end ($) — and ignores partial matches like "textfunny data 2".
Also, this article explains the limitations of exact phrase search in JQL and outlines alternatives like automation rules:
Hope this helps...
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.