Forums

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

How is the attachment storage path constructed in JIRA?

Kristofer Hansson Aspman _Riada_
Contributor
April 7, 2016

Hi!

I am wondering about the attachment storage path for JIRA. On a server that I am running, the structure of the attachments directory (/var/atlassian/application-data/jira/data/attachments/) looks like this:

`-- JSDT
    `-- 10000
        `-- JSDT-2
            |-- 10100
            `-- thumbs
                `-- _thumb_10100.png

I am currently writing a groovy script in which I need to determine the path to an attachment. In answers to questions such as https://answers.atlassian.com/questions/297697, PathUtils.joinPaths() is used to construct the path. However, it does not seem to add the "10000"-directory seen above. My questions related to this are:

  • Why do I have that directory? I.e. has there been a change to the directory structure since the answer to the above linked question was written? I am running JIRA Software 7.1.2 (with JSD) and can't really remember how it looked before.
  • Where does the number 10000 come from? When is a "20000"-directory added? What is the logic behind it and its relation to the attachment IDs.
  • Are there any methods that can be used to access this?

I bet I am missing something trivial, but what I see is a bit inconsistent with what I've found when looking around answers and documentation.

 

1 answer

1 accepted

1 vote
Answer accepted
cgauterio
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 25, 2015

Hi Sebastian,

I'm afraid that's not possible to do in Cloud, as it would require some customizations, which are not allowed in our platform.

Cheers,

Clarissa.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events