How to find dangling attachments

Is there a way to find all attachments in both JIRA and Confluence which are no longer referenced by any page / issue?

1 answer

1 accepted

0 votes
Accepted answer

The answer is "no" really, because you can't have dangling attachments.  Attachments belong to pages or issues.  They can't exist outside them.  Delete, move, rename a page or issue and the attachments go with it.

Confluence I suppose does have one other layer - you could argue that something is "dangling" if there are no macros that expose an attachment (but it would still be on a page)

There is a system "dangling" as well.  When something has gone wrong (Crash during delete, or users adding files to the file system for example), you can end up with files in the attachments directories that do not show in the application.  They're not really dangling because the application has no knowledge of them, and the "fix" is a matter of comparing a file system against the attachments tables in the database.

I got dangling attachments when I moved from hosted Confluence to self-hosted ones - some links to the images have not been properly converted for unknown reasons. 

I will check the attachments tables.



Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Jira

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,082 views 0 8
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