Forums

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

How to dynamically link multiple issues in an Advanced Edit when already in a branch?

Mart Postma
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.
November 4, 2025

Hi everyone,

I’m working on a Jira Automation rule and ran into a limitation when trying to link multiple issues dynamically via an Advanced Edit action.

Here’s the context:

  • I have a dynamic lookup table {{inwardIssueLinksTable}} which stores all inward issue links for a specific work item: 
    Inward Table: LookupTable{objectMap={96008=PSS-10173, 95276=COR-53017, 95271=PSS-10040}, size=3, entries=[LookupTableEntry{key=96008, value=PSS-10173}, LookupTableEntry{key=95276, value=COR-53017}, LookupTableEntry{key=95271, value=PSS-10040}]}
  • Then I have a smart variable called

    {{PSSInwardIssueKeys}} = PSS-10173, PSS-10040
    

    (it’s generated earlier in the rule based on the lookup table and can contain one or several PSS issue keys).

  • I’m already inside a branch that loops over the most recently created work item.

  • Now I want to link this most recently created work to multiple PSS issues.

Here’s the Advanced Edit I’m using: 

 {
  "update": {
    "issuelinks": [
      {
        "add": {
          "type": {
            "name": "Fixes in continuous deployment"
          },
          "outwardIssue": {
            "key": "{{PSSInwardIssueKeys}}"
          }
        }
      }
    ]
  }
}

As expected, this works fine if there’s only one issue key in the variable.
But when multiple keys are included, Jira returns this error:

Error editing work items COR-53314 (Too many operations (2) provided for field 'issuelinks'. We support at most 1 operation for this field. (issuelinks))

I understand why this happens — the REST API expects one add object per link, not a comma-separated list — but I can’t easily add another For each smart value branch to loop over {{PSSInwardIssueKeys.split(",")}}, since I’m already inside a branch for the Hotfix.

So, is there a way to:

  1. Dynamically generate multiple "add" blocks in one Advanced Edit JSON (e.g. using smart value iteration within the "most recently created work item" branch)?

  2. Or otherwise, link multiple issues within a single branch context?

Any ideas or examples would be much appreciated, ideally something that can handle a variable number of linked issues without leaving the current branch.

Thanks!

2 answers

0 votes
Arkadiusz Inglot
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.
November 4, 2025

There are 3 elements where u can iterate though objects. They are different but sometimes can be abused to achieve the goal.

1. Branch

2. Lookup issues (blue action)

3. Scheduled trigger (green trigger)

 

You can consider rebuilding your mechanism to get "recently created issues" (or list of keys to be linked)) using Scheduled trigger. This way you can run a single action per iterated issue.

 

Not sure if it will help, but maybe its worth a try.

0 votes
John Funk
Community Champion
November 4, 2025

Hi Mart,

I didn't get into the guts of what you are doing exactly, but below is how I do something similar (linking a work item to multiple other work items) using lookupIssues. 

Screenshot 2025-07-02 112045.png

Mart Postma
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.
November 4, 2025

Hi @John Funk 

Thanks for your suggestion.

As far as I understand, this is not possible in my use case.

Some more details about the automation rule:

  • I do some IF-checks, after which I create a new issue.
  • Then, I use a for branch to loop over this "most recently created work item".
  • Within this branch, I use an advanced edit to link the new work item to one or multiple PSS work items.
  • This is were the problem comes in: the automation rule is able to link one PSS work item to the newly created issue, but not multiple.
  • That is, because I cannot use another for branch within a for branch to loop once more over my smart value with multiple PSS work item keys.

Hope that clarifies...

 

John Funk
Community Champion
November 4, 2025

Why not do what I do and create a second rule that fires when the work item is created in step 1? You don't have to try to do everything in one rule. Just be sure to check the box on the rule details of the new second rule to allow it to be executed as the result of another rule. 

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events