Forums

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

Get an especific summary field from issuelookup

Angel
Contributor
May 6, 2025

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

1 answer

0 votes
Darryl Lee
Community Champion
May 7, 2025

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:

Screenshot 2025-05-07 at 12.09.25 AM.png

 

Sachin Singh _appserveAI a division of Empyra_
Atlassian Partner
May 7, 2025

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:

https://community.atlassian.com/forums/Jira-articles/Search-for-an-exact-phrase-with-JQL/ba-p/2131545

Hope this helps...

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events