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

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,780 views 11 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot