Attachments names have changed in the data/attachments/ directory

Hello,
Any attachements of an issue has its name changed in the data/attachment/ directory.
For example, if an attachment is called "FILE20140807.doc", its name in the directory becomes "86383".

Do you have an idea of how to keep the original file name ?

Thanks.

1 answer

0 votes

You don't. Jira needs to rename the files to enable it to reference them easily.

The general design in Jira is that you're expected to access files through Jira (which keeps the original file names), so the name of the file in Jira's attachement area is irrelevant to the users.

In fact we use an external application that picks up attachments such as "*.sql" so as to automatize their running, and it cannot work if the extension is lacking.

At least, if I take the example beyond, we need the file to be named "86383_FILE20140807.doc", as it was the case in JIRA V3.

Well, your choices are now

1. Rewrite the attachments handling part of Jira (seriously not recommended because you won't be supported and you'll have to re-test and re-do the development on every upgrade. And it's not a minor tweak)

2. Get your external application to read Jira over REST to get the SQL files

3. Integrate the external application more tightly by writing a plugin that can do the work instead of relying on externals

Thanks, we don't upgrade often, it is our first upgrade in 6 years.

Anyway, do you know where we can find the attachments handling part of JIRA ?

I'm afraid I know little more than "download the source code and look for the .java files by hand", because I avoid messing with the core of Jira as much as I possibly can.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,789 views 11 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot