Cannot change feature 'isSubtask' for Issue Type

Problem

When deploying a snapshot CMJ shows an error:

Deployment Integrity Violation - Invalid Change - Cannot change feature 'isSubTask' for Issue Type with name '<name>'

Reason

The problem is that the issue type ('<name>') is a sub-task in one Jira instance (either the source where the snapshot was created or the target where the deployment is done), but not in the other. Jira does not allow modifying the sub-taskness of issue types and CMJ show an error.

Solutions

The issue type can be renamed on either the source or target Jira instance so that it doesn't match by name.

Or the sub-task can be deleted and re-created on either instance so that it matches the sub-taskness.