-
Bug
-
Resolution: Fixed
-
Low
-
None
-
None
-
2
-
Minor
Issue Summary
While migrating Jira Service Management project, some Request Types fail to export because of dependence on certain issue statuses.
Steps to Reproduce
- Go to Jira Administration -> Issues -> Statuses. Create a new Issue Status, say "Dismissed".
- Select any workflow that is used in the project. Edit it such that it now includes the newly created status "Dismissed"
- Go to Project Settings -> Request Types. Select "Edit Fields" for any request type that uses the workflow that was modified in step 2.
- Under the workflow statuses tab, set a custom status name for the new status.
- Remove the status from the workflow. (Optionally, delete the status)
- 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:
- 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
- Execute the following SQL query (written for PostgreSQL - modify as required):
DELETE FROM "AO_54307E_STATUSMAPPING" WHERE "STATUS_ID"='Y' AND "FORM_ID"=X;