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 edited

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

1 vote
Samuel Gatica _ServiceRocket_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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?

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events