Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-79492

JSD failed upgrade task is causing failure when importing to JIRA Cloud

XMLWordPrintable

      Issue Summary

      Importing Jira Server to the Cloud, and if for some reasons there are upgrade tasks that failed for Jira Service Desk in the upgrade task history it will cause the import to fail.

      Steps to Reproduce

      1. Import from JIRA SD Server to Cloud
      2. Import to a JIRA Cloud

      If the backup contains an entry like this it will fail the import:

      <UpgradeTaskHistoryAuditLog id="xxxxx" upgradeTaskFactoryKey="com.atlassian.servicedesk" buildNumber="2" status="FAILED" upgradeType="SERVER" timeperformed="2019-12-22 19:11:05.0" action="upgrade"/>
      

      Expected Results

      As this is non-essential for Jira Cloud the import shouldn't fail due to this failed upgrade task.

      Actual Results

      The following error is shown in UI:

      Cannot complete the import because one of the import files contains failed upgrade taskrecords: '2'. Search the Atlassian Administrator Knowledge Base for instructions on how to fix this, or contact Atlassian Support for help.
      

      This entry can be found in the backend logs:

      Import validation failed with errors: [Cannot complete the import because one of the import files contains failed upgrade taskrecords: '2'. Search the Atlassian Administrator Knowledge Base for instructions on how to fix this, or contact Atlassian Support for help.]
      

      Workaround

      • This issue is caused by upgrade tasks in Service Desk for JIRA Server that failed and when the Cloud import tries to validate it returns an error causing the import to fail.
      DELETE FROM upgradetaskhistory WHERE upgrade_task_factory_key = 'com.atlassian.servicedesk' and status = 'FAILED';
      

      Or

      Open the entities.xml and try to find the failed tasks and remove the entry from the file should work as well.

            Unassigned Unassigned
            dbrito Daniel Brito [Atlassian]
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: