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
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:
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.
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.