We copy our Production Jira and Confluence down to a Development environment. We do not copy attachments because we do not need them there.
I am looking for a database query to delete all the attachment references in the database, to avoid errors in logs when re-indexing both Jira and Confluence because it cannot find the attachment.
Hi @matt
For JIRA it's in this table and should be returned by the query below.
select fa.id, fa.filename, ji.issuenum from fileattachment fa join jiraissue ji on ji.id = fa.issueid join project p on p.id = ji.project where p.pkey = 'PRG';
Locate Jira server file attachments in the filesystem | Jira | Atlassian Documentation
For Confluence this KB should help you.
Regards,
Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.
Register today!Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.