How can we extract Attachment size is more than 50mb in Jira?

Sattar Baig July 30, 2021

Hi Team,

 

How can we extract Attachment size is more than 50mb in Jira?

 

Is it possible?

 

Please give me your suggestions

 

BR,

Sattar

2 answers

0 votes
Daniel Ebers
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 4, 2021

Hi @Sattar Baig

is your request just about >finding< files bigger than 50 Megabyte?
If so and you have access to Jira Server's filesystem you surely can do:

$ find . -type f -size +50M

Please note the '.' starts finding in the directory you are currently are. You need to change into that directory first or specify a path by "find /path/to/your/installation ..." - obviously then replace the path with your actual path.

Regards,
Daniel

0 votes
Suvradip Paul
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 31, 2021

Hi @Sattar Baig ,

Thanks for posting and welcome to the community.

Are you looking to use marketplace apps as part of solution ?

Could you please go through this earlier community post  and I hope you can get a fair idea to proceed -

https://community.atlassian.com/t5/Jira-questions/Need-to-export-all-attachments-from-a-single-Project-JIRA-Cloud/qaq-p/717930 ?

Cheers

Suvradip

Sattar Baig July 31, 2021

Hi Survadeep,

 

Is there any jql query in Jira So I can get Attachment size more than 50mb in all projects?

 

or 

suggest me any Linux command, I will run on my home directory to get Attachment size more than 50mb for all projects

 

BR,

Sattar

Nic Brough -Adaptavist-
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

No, Jira doesn't store the attachment size as a field you can search.  You would need to script or code to create a field to do that.

Suggest an answer

Log in or Sign up to answer