how to link multiple issues at once in the new view

carey.cox@powerschool.com
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 17, 2021

In the old view you could paste in several issue keys/numbers (separated by whitespace) into the link text box, and it would link them all to a single ticket.  The new view doesn't allow you to do that.  I get an error saying the it can't find the issue with the given key.

How do you do this in the new view?  It will be very tedious to have to link 100 issues to one ticket one at a time.  For now I will just switch back to the old view to do this.

4 answers

1 accepted

1 vote
Answer accepted
Brian Akong
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 24, 2022

As pointed out previously, I do not believe this functionality exists in the "new view" yet either.

I found myself in the same position and ended up resorting to using the Jira REST API - in particular, the "Create issue link" endpoint.


Below is a solution that uses Node.js to link an arbitrary number of issues to a single issue

  1. Install Node.js if you do not currently have it installed on your computer

  2. Create a new directory somewhere on your computer
    mkdir linking-jira-issues
  3. Within this newly created directory (i.e. "cd" into this directory), run the following commands
    npm init

    npm install node-fetch
  4. Create a file named index.js
  5. Copy and paste the contents of this GitHub gist into your index.js file
  6. Fill in the variables with appropriate values
  7. Execute the file by running
    node index.js

     

As long-winded as it is, that should hopefully link all the tickets you specify to a single Jira ticket without having to do each one manually in the UI.

carey.cox@powerschool.com
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 20, 2023

Thank you.  I finally got around to testing this and it works.

Like Brian Akong likes this
Brian Akong
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 23, 2023

Awesome! Glad to hear that!

Robert James Fulner
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 8, 2023

When I run the same I get the following error message




 SyntaxError: await is only valid in async functions and the top level bodies of modules
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1178:20)
at Module._compile (node:internal/modules/cjs/loader:1220:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
2 votes
Adam Witt
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 16, 2023

I've found a way!! 

1. Begin on the Issue Navigator. On the right hand side of an issue, click the 3 dots menu and scroll down to Link

Screenshot 2023-06-16 154239.png

2. In the popup, click search for an issue

 

Screenshot 2023-06-16 154402.png

3. In the next pane, click Advanced Search so you can do your own JQL.
NOTE: Do not put "order by" at the end of your JQL or it won't work

Screenshot 2023-06-16 154443.png

4. From here you can click the checkbox next to Type to select all 10 and then the Add Button at the bottom right to complete your selection. 

Screenshot 2023-06-16 154532.png

It only returns 10 issues, sadly 😢 but that's still better than nothing. I'd recommend including something like "issueLinkType is empty" in your JQL so you can run it a few times with new results each time. 

1 vote
Timothy Bassett July 10, 2021

Sounds about right.  More basic functionality removed.....

0 votes
Airbus Driver
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.
June 17, 2021

I don't think this functionality has been implemented yet, however, there have been numerous requests for this feature. Refer to the following: link multiple issue requests 

Suggest an answer

Log in or Sign up to answer