I need a script for find out Attachment size more than 50mb for all projects in Jira?

Sattar Baig July 31, 2021

Hi Team,

 

I need a script or code to find out Attachment Size more than 50mb for all projects in Jira?

I am using Jira Server Instance.

 

Please give me your suggestions

 

BR,

Sattar

2 answers

0 votes
Kishan Sharma
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 31, 2021

Do you have access to database ? then below query might help as well.

select filesize from fileattachment order by filesize desc

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 31, 2021

Hi! 

If you are on Linux you can use the next  snippet

find /{jira_home}/data -type f -size +50M
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 2, 2021

for history

select filesize /1024 /1024
from fileattachment 
order by filesize desc;

Suggest an answer

Log in or Sign up to answer