Forums

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

How to Convert the JIRA Backend Attachement file to normal format without adding to jira

Rajesh_Ramankutty
Community Champion
February 17, 2022

Dear team,

We have huge amount of attachement in jira server so we use to remove the files to freeup the storage in linux system now if we need that attachment file for reference means we cant able to add it soon because we need to get downtime also for restarting the jira.

is there is any other way to change the file type to original state of the file without importing to jira

1 answer

0 votes
Nic Brough -Adaptavist-
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.
February 17, 2022

Jira doesn't change the attached files in any way, you don't need to convert anything.

It does however store them with a unique key (this enables multiple versions of files with the same name to be attached)

Rajesh_Ramankutty
Community Champion
February 19, 2022

Hi,

your right if i go and see the file in the backend its showing the key instead of name of the file also the formate is different if we know the what is exact formate then we can able to add it else how we can open the file that is my dout.

 

for eg i have a pdf file in the backend i want to open it and i dont know what is that file then how i can open it without adding filename.pdf

 

i hope you got my point

Nic Brough -Adaptavist-
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.
February 20, 2022

I strongly recommend that you stop looking at the "back end", and use the REST api or the UI to do your work.

You should never write (and that includes delete) to a Jira data store outside the application, because you will break it.

You say "for eg i have a pdf file in the backend i want to open it" - that's fine, click on it in the UI or make a REST call to get a copy of it.  Both of those will give you the a file with the"right" name

Akash October 27, 2023

what if i  need to downloads all attachment of certain projects which has 1000 issues and many attachments in it.

Nic Brough -Adaptavist-
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.
October 29, 2023

Then script some REST calls.

Like Akash likes this

Suggest an answer

Log in or Sign up to answer