{"id":1919,"date":"2025-12-12T13:49:37","date_gmt":"2025-12-12T20:49:37","guid":{"rendered":"http:\/\/10kdev.net\/?p=1919"},"modified":"2025-12-12T13:49:37","modified_gmt":"2025-12-12T20:49:37","slug":"deleting-excessive-jira-web-links","status":"publish","type":"post","link":"http:\/\/10kdev.net\/?p=1919","title":{"rendered":"Deleting Excessive JIRA Web Links"},"content":{"rendered":"<p>I have a Jira ticket with a ton of web links all created by the Jira\/Burp Suite connector.\u00a0\u00a0<\/p>\n<p>While I can delete them manually, I wanted to look to see if I do this via the API.\u00a0<\/p>\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"http:\/\/10kdev.net\/wp-content\/uploads\/2025\/12\/image-1.png\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/10kdev.net\/wp-content\/uploads\/2025\/12\/image-1.png\" alt=\"\" class=\"wp-image-1922\" width=\"276\" height=\"507\" srcset=\"http:\/\/10kdev.net\/wp-content\/uploads\/2025\/12\/image-1.png 414w, http:\/\/10kdev.net\/wp-content\/uploads\/2025\/12\/image-1-163x300.png 163w\" sizes=\"(max-width: 276px) 100vw, 276px\" \/><\/a><\/figure>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>Do a GET with this (paying mind to your security credentials):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>GET\nhttps:&#47;&#47;bluesage.atlassian.net\/rest\/api\/latest\/issue\/ISSUE-1234\/remotelink\n<\/code><\/pre>\n\n\n\n<p>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&#8217;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 <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>DELETE\nhttps:&#47;&#47;bluesage.atlassian.net\/rest\/api\/latest\/issue\/ISSUE-1234\/remotelink\/876<\/code><\/pre>\n\n\n\n<p>I didn&#8217;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&#8217;t tried yet that might be easy to write bash or groovy or python to iterate.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a Jira ticket with a ton of web links all created by the Jira\/Burp Suite connector.\u00a0\u00a0 While I can delete them manually, I wanted to look to see if I do this via the API.\u00a0 There is a way to l0ok up all the links on a ticket with the API, and then [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts\/1919"}],"collection":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1919"}],"version-history":[{"count":3,"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts\/1919\/revisions"}],"predecessor-version":[{"id":1923,"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts\/1919\/revisions\/1923"}],"wp:attachment":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1919"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}