Forums

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

How to save automaticly defined attachments?

Andreas Pluto June 19, 2020

Hello everyone,

 

is there a way to automatically save the uploaded attachments from selected user experiences in a predefined directory?

2 answers

1 accepted

0 votes
Answer accepted
Rudy Holtkamp
Community Champion
June 19, 2020

Hi, Jira stores attachments in the <Jira Home>\data\attachments\<Project key>\<number, like 10000>\<issue-key>.

As example <Jira home>(Windows system): C:\Program Files\Atlassian\Application Data\JIRA\data\attachments\SLP1\10000\SLP1-6\10101

Where the last 10101 represents the (renamed) file.

 

This means that you can change the Jira Home dir or you can use (sym/hard) links to redirect attachments to another disk location. But this is not recommended, at all. But if you do so, you should really think about your backup strategy.

Andreas Pluto June 23, 2020

Hello,
Thanks for the info.
The attachments are just lying there :-)
Two questions:
1. is it possible to restore the original filenames
2. is this also organized in Scrum projects?

Thanks for an info.

Greetings,
Andreas

Rudy Holtkamp
Community Champion
June 23, 2020

1. I don't know your objective, but renaming the files will make them useless for Jira, you can rename it to the original file name and open it. (In other words, the are only renamed, not compressed.

2. Yes, for every project it is the same.

Andreas Pluto June 24, 2020

My aim is to save all documents created for a project (test cases, documentation, customizing messages, etc.) with the appropriate names in a folder independent of Jira, so that they can be sent to an auditor.
This is a rather complex project. To fall back on the documentation in Jira for the audit would be very time-consuming.
Therefore, the original names of the documents are very important.

Andreas Pluto June 24, 2020

A matching between original name and Jira code must be stored in a table (which table)

Rudy Holtkamp
Community Champion
June 25, 2020

It is in the fileattachment table:

select * from fileattachment;

image.png 

Andreas Pluto July 8, 2020

Sorry for the late feedback - but it fits perfectly :-)

The next problem - unfortunately the documents are not named speaking.
Conclusions can be drawn from the underlying user stories.
In which tables are they stored or linked to the individual projects - and can the status be checked additionally?

Do you have any idea or solution?

Regards,

 

Andreas Pluto

0 votes
Andreas Pluto July 8, 2020

.

Suggest an answer

Log in or Sign up to answer