what is bucket in this attachment article?

Kim Tso January 13, 2020

https://confluence.atlassian.com/jirakb/locate-jira-server-file-attachments-in-the-filesystem-859487788.html

 

<JIRA_HOME>/data/attachments/<PROJECT>/<BUCKET>/<ISSUE_ID>/<ID>

 

The above kb mentioned about how to locate attachment in the filesystem.

I have some question on the <BUCKET>. What is this and how to retrieve this?

 

In my project, I can find "10000" for <BUCKET>. will it be any other value?

 

1 answer

1 accepted

1 vote
Answer accepted
DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 13, 2020

@Kim Tso  Welcome to the Community!!!

<BUCKET> here is grouping based on issue row number in database, for example,

  • Issues that get IDs from 10000 - 19999 go into the "10000" bucket.
  • Issues in IDs range from 20000 to 29999 go into the "20000" bucket.

This is set just to by-pass limitations put by various OS and file-systems for number of sub-directories and files.

This is introduced in Jira 8.

Kim Tso January 14, 2020

 @DPKJ  Thanks.

Is there any java object call that can get the <BUCKET> in JIRA workflow?

It likely change when issues are created.

DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 14, 2020

Suggest an answer

Log in or Sign up to answer