Renaming the File Attachments from Old Jira Version

Still need help?

The Atlassian Community is here for you.

Ask the community

Problem

  • After migrating from Jira Server to Jira Cloud, some attachments are broken due to different format of the file name in old Jira version.

  • This usually happens when Jira Server was running Jira 4.2 or earlier, then upgraded the version to the latest version.

Cause

  • In older version of Jira, the attachments are named as id_filename (Jira 4.2 and earlier). However, attachments are named only with IDs on the latest version of Jira (including Jira Cloud).

  • Even after upgrading Jira to the latest version, the old attachments remain with the old formatting,id_filename

  • Example:

    • Old format:

    • New format:

Resolution

Prerequisites

  • Need to make sure that 'rename' package is installed 

    Command 'rename' not found, but can be installed with:
    
    sudo apt install rename

Steps:

  1. Download this script: rename.sh

  2. Place the script within the data folder

  3. Run the script: 

    $ ./rename.sh
  4. You would notice a log file called rename.txt is then added to the directory



Last modified on Jun 20, 2019

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.