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

0 votes
Answer accepted
Lathrop [PSU]
Contributor
April 6, 2015

Found it!

Jira 6.4 docs say:

https://confluence.atlassian.com/display/JIRA/Configuring+JIRA+Options ?
"
Exclude email header 'Precedence: bulk'


Controls whether to prevent the Precedence: Bulk header on JIRA 
notification emails. This option should only be enabled when notifications 
go to a mailing list which rejects 'bulk' emails. In normal circumstances, 
this header prevents auto-replies (and hence potential mail loops).
Default: OFF

Suggest an answer

Log in or Sign up to answer