Uploaded image for project: 'Migration Platform'
  1. Migration Platform
  2. MIG-900

Jira Service Management Request Type Export Failure - IssueStatus expected to be exported

    XMLWordPrintable

Details

    • 2
    • Minor

    Description

      Issue Summary

      While migrating Jira Service Management project, some Request Types fail to export because of dependence on certain issue statuses.

      Steps to Reproduce

      1. Go to Jira Administration -> Issues -> Statuses. Create a new Issue Status, say "Dismissed".
      2. Select any workflow that is used in the project. Edit it such that it now includes the newly created status "Dismissed"
      3. Go to Project Settings -> Request Types. Select "Edit Fields" for any request type that uses the workflow that was modified in step 2. 
      4. Under the workflow statuses tab, set a custom status name for the new status.
      5. Remove the status from the workflow. (Optionally, delete the status)
      6. Migrate the project.

      Expected Results

      The project should be migrated successfully. The request type does not contain custom workflow status name for the deleted status. 

      Actual Results

      The below exception is thrown in the export error logs file:

      2021-10-31 17:23:01.391 ERROR PROJ project-export We couldn't export Request Type 10. Reason: java.lang.IllegalStateException: Entity mri:mig:jira/classic:issueStatus:11020 is expected to be exported, but it was not. 

      Workaround

      Remove the custom status mappings for the request types.

      For each instance of the above error:

      1. Get the request type id (say X) and the issue status ID (say Y) from the log statement. In the above example, X = 10 and Y = 11020
      2. Execute the following SQL query (written for PostgreSQL - modify as required):
        DELETE FROM "AO_54307E_STATUSMAPPING" WHERE "STATUS_ID"='Y' AND "FORM_ID"=X;
        

      Attachments

        Issue Links

          Activity

            People

              3e3e93f77c1d Basu Dubey (Inactive)
              3e3e93f77c1d Basu Dubey (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: