I have SQL to get project key,issue key and attachment id's,looking for attachment size in byes in jira version 8.20.5
Example :
Project Key , Issuekey , Attachment ID, attachmentsize in bytes
SELECT
p.pkey AS project_key,
ji.issuenum AS issue_key,
fa.id AS attachment_id
FROM
project p
JOIN
jiraissue ji ON p.id = ji.project
JOIN
fileattachment fa ON ji.id = fa.issueid
There's a "filesize" field in the "fileattachment" table, add it as part of your SELECT statement and that might get you what you want.
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.