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 vote

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.

 

THANK YOU

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

239 views 1 18
Join discussion

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