Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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 Champion
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 Champion
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 Champion
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