Unable to download attachment if project key was changed

Description

To replicate:

Create a project, "ABC"
Create an issue and upload an attachment, "ABC-1"
Rename the project key to "DEF"
Archive the issue DEF-1
Expected outcome:

Backup the issue with attachment stored in <Jira-home>/data/attachments/ABC/10000/ABC-1/{Attachment ID}
Actual Outcome:

The plugin will display error where DEF-1 cannot be found in file directory.
This is because the attachment structure are built based on original project key hence any new issue or old issue created will be using old project key.

Environment

None

Activity

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created April 27, 2020 at 6:37 AM
Updated August 16, 2020 at 6:54 PM
Resolved April 27, 2020 at 6:42 AM
Who's Looking?