All the attachments to issues exists, but the attachments IDs in the attachment URL do not have a matching filename in the attachments directories
I have an issue SAMP-451 that has attachments to it. The attachment ID portion of the attachment URLs do not match attachment IDs in the attachment directory for that issue.
For example, the attachment URL is
http://localhost/11544/ID%20Clearance%20Data%20Elements.docx
But the attachment directory for that issue does not have any files named 11544. Matter of fact, there is not file in the entire attachments directory named 11554. Instead I have something like:
/var/atlassian/application-data/jira/data/attachments/SAMP/1000/SAMP-451/1009
However, if I upload new attachments, the links work.
I don't know how this discrepancy/inconsistency happened . I have just been brought on to find a solution to the problem.
Is there any way to make JIRA use the correct attachment IDs? Or is there a way I can delete the attachments and re-upload? I have over 1000 issues.
Any help will be greatly appreciated.
Hi Amin,
11544 is a filename of the attachment below the directory data structure of Jira eg.
/YOURJIRAHOME/data/attachments/YOURPROJECTKEY/10000/YOURISSUE-KEY/11544
This is the internal name Jira uses to store attachments. You will not be able to change this.
Best
JP
Hi JP, thanks for the response.
I understand that I am not able to change this structure. My problem here is that the attachment URL is http://localhost/11544/ID%20Clearance%20Data%20Elements.docx
but in my directory structure, I have
YOURJIRAHOME/data/attachments/YOURPROJECTKEY/10000/YOURISSUE-KEY/968
So there is a mismatch between the ID in the attachment link and what actually exist on the file system.
I need to find a way to match them
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amin,
I would open a support call with Atlassian in this case. Pretty sure something is really mixed up here.
Sorry
JP
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.