Deleting Excessive JIRA Web Links

I have a Jira ticket with a ton of web links all created by the Jira/Burp Suite connector.  

While I can delete them manually, I wanted to look to see if I do this via the API. 

There is a way to l0ok up all the links on a ticket with the API, and then use each linke id to delete. Can use it in Postman etc.

Do a GET with this (paying mind to your security credentials):

GET
https://bluesage.atlassian.net/rest/api/latest/issue/ISSUE-1234/remotelink

This give you back a list of the links and their ids. From here it is simple enough to iterate through and delete the links (REST DELETE operation). You’ll have to use this for each link as there is no bulk API statement for Atlassian. In this cas the link ID is 876

DELETE
https://bluesage.atlassian.net/rest/api/latest/issue/ISSUE-1234/remotelink/876

I didn’t write any code to do this call/iteration, but it would be simple enough to even vibe code it. Also, there is an Atlassian CLI I haven’t tried yet that might be easy to write bash or groovy or python to iterate.

Comments are closed.