The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new 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;