The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Attachment Storage Path Mismatch after Project Key Change

Alexey Gusev
Contributor
August 2, 2024

Hello!

I recently updated the project key in Jira for one of our projects. The project key was changed from TEST to TESTSERVICE. However, despite this change, attachments are still being stored on the server under the old project key path, which is TEST.

Here are the details:

  • Old Project Key: TEST
  • New Project Key: TESTSERVICE
  • Attachment Storage Path on Server: <JIRA_HOME>/application-data/jira/data/attachments/TEST/
  • Current Attachment Path Issue: Attachments are being saved under the old key path TEST rather than the new key TESTSERVICE.

I have verified that the project key was successfully updated in Jira, but the physical storage path for attachments has not been updated accordingly.

Could you please provide guidance on how to resolve this issue? Specifically, I need assistance with ensuring that attachments are stored under the new project key path or updating the existing attachment paths to reflect the new project key.

Thank you for your assistance.

Jira DataCenter 8.20.10

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Samuel Gatica _ServiceRocket_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
August 2, 2024

Hi @Alexey Gusev 

This is an expected behavior.

All attachments will be accessible after the project key change. Please note, however, that the directory that they are stored in (under the <Jira Home>\data\attachments directory) will retain the old project key. For example, if you change a project's key from TEST to DEMO, the attachments will be stored under <Jira Home>\data\attachments\TEST.

Please refer to Doc https://confluence.atlassian.com/adminjiraserver/editing-a-project-key-938847080.html

 

Best regards

Sam

 

Alexey Gusev
Contributor
August 2, 2024

Hi @Samuel Gatica _ServiceRocket_ !

Thank you for the quick response. I saw this document: https://confluence.atlassian.com/adminjiraserver/editing-a-project-key-938847080.html

Then, another question: how can I obtain the absolute path to a specific attachment for a specific issue through Groovy if the interfaces

  • AttachmentUtils
  • AttachmentStore

are deprecated?

Samuel Gatica _ServiceRocket_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
August 2, 2024