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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy
I could solved creating variables and I used in the branch with api call to update the issue.
Thanks
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.