Hi
there is something I need to understand about the hierarchy of attachments directory, normally the issues attachments exist under /attachments/key/10000/ but there are cases where the issues attachments directories exist directly under /attachments/key/ as shown below
and when I look into each one of them ( except for 10000 directory ), I find each directory is actually empty so when this case happens exactly ? as I need to find the projects that has no attachments
@Alexey Matveev I would like to hear your opinion too if you dont mind
thanks
Stop looking at the directories, they're not intended to be used like this.
The only thing you should be doing with the directories is backing them up. They're not there for you to read outside the application.
We are dealing with a situation where this is actually important.
There is a project with over 60TB of attachments and we will need to turn them into links in the projects as the directory has grow to much. the problem is that we need to rename the attachments back to their original names and generate a url that allow us to download the file anyway with the original name instead the id.
The problem, we need to deal with hundreds if not thousands of directories that are affected like this.
Any idea?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to the Atlassian Community!
You will need a script that can read over all your attachments and extract their names alongside their file ids, then (at least) give you a simple mapped list of name, version, and the exact path and file name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah the script is not an issue. the issue comes with the issue directories outside of the 10000, 20000, 30000 directories, basically, the ones that are at the root of the ProjectKey directory and not inside a "numbered" directory.
No idea why, in some cases, some attachment directories are created in the root of the projectkey directory.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jira doesn't create direcotories outside the issues. I suspect you have an app that does project-level attachments.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Nic,
Using the screenshot attached to this post, you can see that Jira actually did created some directories for attachments outside the x0000 directory.
I've seen this situation happening before. This is what I'm trying to understand.
Kind regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What app are you using to do project level attachments? Can you see what is in the files attached at that level?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
At the moment we are seeing the server attachment directory through a shared screen so I can't investigate much.
I will try to provide more information as soon as possible.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Odd behavior. We have 26 projects, and none of them have attachments directly in the key directory; they're all in 10000, 20000, etc. subdirectories. Further, I find no empty directories; only issues with attachments have directories. Now, if there is an issue for which its attachments are deleted, its empty directory is left behind.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.