Forums

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

Add several links in Jira automation

Orly Dahan
Contributor
February 1, 2023

Hi,

I have a manual automation that creates 7 stories.

When I create the 3rd one, I need to link the previous 2 as "is blocked by".

I tried to use the following (used Create variable for the keys of the 2 issues), but for some reason, only the last one is linked.

What am I missing?

 {"update": {
"issuelinks": [
     {
              "add": {
                  "type": {
                   "name": "Blocks"
                  },
               "inwardIssue": {
                "key": "{{FirstKey}}"
                 },
               "inwardIssue": {
              "key": "{{SeconKey}}"
          }
       }
     }
    ]
   }

1 answer

0 votes
Trudy Claspill
Community Champion
February 7, 2023

Hello @Orly Dahan 

I have looked for answers and tried a few things myself, but not found a solution.

If I try to do this without Advanced Edit, and simply by putting the two issue key variables in thus:

Screen Shot 2023-02-07 at 1.45.21 PM.png

...then I get this error in the rule Audit Log:

Screen Shot 2023-02-07 at 1.45.51 PM.png

 

I am starting to wonder if adding an Issue Link is limited to one issue per Action.

Orly Dahan
Contributor
February 9, 2023

Hi @Trudy Claspill 

I think that you are right and that is why eventually I split it:

Pic1.png

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