Forums

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

Jira Automation: Link issues with all lookup issues

Martin Karing July 14, 2025

Hello,

I'm currently trying to link issues automatically using Jira automation. The problem in my specific case is, that I need to link every issue that matches a condition with every issue that matches another condition.

Specifically, from my issue starting the progress I need to update all issues that are linked to the issue, and link those issues with the result of a lookupIssues list.

Usually I would use a "Branch" for that, but this does not work in my case, because I use one already to get all the issues connected by a link.

To link all the issues, I tried to use the following advanced field editing expression.

{
"update": {
"issuelinks": [
{{#lookupIssues}}
{
"add": {
"type": { "name": "2. Blocks" },
"inwardIssue": { "key": "{{key}}" }
}
}{{^last}},{{/}}
{{/}}
]
}
}

 This works in case lookupIssues contains exactly one issue (that is the usual case). But it fails with a message explaining only one "function" can be used in issuelinks in case there are two or mor issues in lookupIssues.

How do I go about fixing that?

Best regards,
Martin

1 answer

1 accepted

2 votes
Answer accepted
Evgenii
Community Champion
July 14, 2025

Hi, @Martin Karing 

You overcomplicated solution. It can be done with smart values.
Just use {{lookupIssues.key}} as smart value, in Link Issues action.
Made small example to show, how it works:
chrome_140725_023.png

chrome_140725_024.png

chrome_140725_025.png

Martin Karing July 14, 2025

Thank you @Evgenii

this works indeed. Guess the hep page for the link work items action lead me to believe that it only works with one.

Like Evgenii likes this

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