Bulk Delete Issue Links

Some users improperly created an absurd number of links between issues of two two projects. This is causing serious JIRA performance impacts.
Removing these links manually is not viable, so I would like to remove these links directly into the database?
Is that possible?
Is there any other way to bulk remove issue links?

6 answers

Hi @Bob Swift [Bob Swift Atlassian Add-ons] could you make the link above available again please? I get access denied.

The link is still valid. If it shows a blank page then just refresh your browser and it should show the page correctly the second time. It is some display bug in Confluence/Questions :(.

Hi bob, I still get access denied, thanks for replying though.

Oh, yes, the recent upgrade of Atlassian Questions for Cloud prevents anonymous access like it was before - very frustrating :(. 

You need to login with your Atlassian id to get access.

I've logged in but cannot access the answer

Is there no answer to this question yet? I have about 280 issues to delete and the window doesn't even refresh each time I manually delete so it's hard to figure out where I left off without waiting for an error. This is pretty frustrating :(

Hi Tiffany,

It would be possible to write a JAVA Program communicating with the REST API of your JIRA Server: First you read the Link-IDs of your issues in focus and then delete them (also using the REST API)

Cheers,

Mehdi

Still no answer?  Can someone just paste the contents of that link's page here?

The only way I was able to do anything was to go to the primary ticket (the one with all the others linked and delete each link) It was tedious but better than jumping from ticket to ticket to delete the links. I really can not stand that so many logical things need plug-ins/add-ons to do in JIRA. I am not a developer and I feel like you have to be one to get JIRA to do what you need it to do 50% of the time. This should be a bulk change feature!

There is a field in bulk edit for changing links but as far as I can tell, it doesn't do anything.  I tried setting them to blank.

Contents of Bob Swift's link (however it doesn't appear to be a solution):

Sergio Silva· over 3 years ago
Some users improperly created an absurd number of links between issues of two two projects. This is causing serious JIRA performance impacts. Removing these links manually is not viable.
I saw in the JIRA cli addon documentation that I can delete issue links via comman line, but in the example are required of the issue keys and link type. With JIRA cli I can delete all links of a particular type of all issues found with a JQL search?

==========

Bob Swift [Bob Swift Atlassian Apps] answered on this - over 3 years ago
Yes, I think so. You front end the deleteLink with a runFromIssueList specifying the jql parameter.

----------

Sergio Silva - over 3 years ago
Hi Bob!
Thanks for your reply.
I am testing this resource and I used the commands below unsuccessfully:

C:\JIRA CLI>jira --action runFromIssueList --jql "issueFunction in hasLinkType('Blocks')" --common " --action deleteLink --link "10000""
Run: --action deleteLink --link 10000
This function requires a non-blank value for parameter: issue
Client error: 1 actions failed

**********

C:\JIRA CLI>jira --action runFromIssueList --jql "issueFunction in hasLinkType('Blocks')" --common " --action deleteLink --issue @issue@ --toIssue @issue@ --link "10000""

Run: --action deleteLink --issue TP-2 --toIssue TP-2 --link 10000
Remote error: JIRA reports: Cannot find link matching these parameters.
Client error: 1 actions failed

I am understanding that I always have to inform the issues that have the link and if I use the reference @issue@  it tries to evaluate a link from one issue to itself.
Some idea?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Jira

How you can achieve compact and easy-to-maintain workflows in your JIRA( Server)

This approach requires you to have the JIRA administrative rights. The main aim of this article is to help you achieve an organized, easy-to-maintain workflows in your JIRA instance thereby, reducin...

187 views 0 0
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you