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

1 accepted

0 votes
Answer accepted
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...

Angel
Contributor
May 8, 2025

Hi @Sachin Singh _appserveAI a division of Empyra_ 

Is possible generate a loop without branch? I need kept access to the main issue because I need edit it. My user case is that when a issue is created in proyect edit the principal (parent) field with other issue in other proyect so for this reason I lookup the exactly summary

Regards

Angel
Contributor
May 8, 2025

Hi @Darryl Lee 

Yes the branch allow me made the validation, but I need edit the main issue is possible get the value from main issue inside the branch? 

Regards

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.
May 8, 2025

Hi @Angel 

To help you solve this scenario, let's return to the earlier question from @Darryl Lee 

What do you want to do when an exact matching Summary is found?  For example, do you need the issue's key?  Do you need something else?

And...what is the source of the search value, "\"textfunny data\""?  The source impacts how this can be solved.

 

Perhaps if you post the following more context will be provided:

  • explain what problem you are trying to solve; that is, "why do this?"
  • an image of your current, complete rule in a single image file
  • an image of the audit log details showing the rule execution, with all areas a the right side expanded

 

Kind regards,
Bill

Angel
Contributor
May 8, 2025

Hi @Bill Sheboy 

I have two projects in Jira: 'Project A' and 'Project B'. In Project B, I create an issue called 'Textfunny data', and Project B itself is also named 'Textfunny data'. Therefore, the automation we need is that when an issue is created in Project B, it uses the project name as a reference to set the issue 'Textfunny data' from Project A as the parent of the newly created issue.

 

I created a rule with lookup with the project name, but this way doesnt get exact string match of summary and return more than one issue.

 

epicsss.png   

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.
May 8, 2025

I am still unclear "why" you are doing this.  What need does this solve?  Knowing that will help the community to perhaps suggest other solution approaches.

 

And, you seem to have changed the scenario.  I bolded the part you have changed.

GIVEN a work item exists in "Project A"
AND the work item has a Summary of exactly "Textfunny data"
AND there exists a different project named "Textfunny data"
WHEN a work item is created in project "Textfunny data"
THEN make the newly created work item a child of the issue in "Project A" which has the exactly matching name as its Summary

 

Is there only ever one work item in the project named "Textfunny data"?

What happens if the type of the new work item cannot be a child of the one in "Project A"?  (for example, if they are both Stories)

Angel
Contributor
May 9, 2025

Hi @Bill Sheboy 

I could solved creating variables and I used in the branch with api call to update the issue.

Thanks

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