Via SQL, I am trying to extract path and filename of attachments on our Jira Software Server.
After reading this article: https://confluence.atlassian.com/jirakb/locate-jira-server-file-attachments-in-the-filesystem-859487788.html I do have some questions:
#1
The article writes that <bucket> number depends on file ID number, but the examples provided use issue number:
CEILING<span>(</span><span>(</span>ji<span>.</span>issuenum<span>/</span><span>10000</span><span>)</span><span>)</span><span>*</span><span>10000</span>
Also, this does not count as described. I guess it should be something like:
CEILING((fa.id/10000)-1)*10000
#2
Some files on the server seem to have another filename than the one provided in fa.filename (which is also what is seen in the UI). Specifically, like <fa.id-<fa.filename>. Any idea how to know when one filename or another is used?
Best Regards
Bo