Troubleshooting CMJ deployment errors caused by automation rules and integrity checks
When deploying a project snapshot using Configuration Manager for Jira (CMJ), the process may fail even if the automation rules in the target environment are disabled and not included in the snapshot. This happens because CMJ performs an integrity check that validates automation rules, workflows, screens, filters, and custom fields in both the source and the destination environments. If invalid JQL, missing fields, or malformed data are detected, the deployment can be blocked to prevent inconsistencies.
In some cases, the error can also be linked to third-party app dependencies, such as automation rules using components from third-party apps. Additionally, custom fields with malformed JSON can stop the deployment until corrected.
Instructions
Verify Jira and CMJ versions
Make sure the source and target environments are running the same CMJ version. The target environment should be on the same or a higher Jira version than the source.
Check automation rules in the target environment
Review disabled and enabled rules.
Inspect all triggers, conditions, and actions for invalid JQL or references to missing fields.
Fix or remove problematic rules before retrying the deployment.
Run the Integrity Check
Perform the Integrity Check on both the source and target instances.
Resolve errors flagged in the report, even if they seem unrelated to the project being migrated. CMJ enforces instance-wide consistency to avoid hidden conflicts.
Investigate custom fields
Look for malformed JSON in custom fields.
If using any third-party apps, confirm that the field configuration is valid and the app is available in the target instance.
Use Power Admin for Jira
Locate custom fields, workflows, or automations involved in the errors.
Identify and correct broken references before attempting deployment again.
Test with automation temporarily removed
If the issue persists, remove the problematic automation rule, complete the deployment, and then re-import or recreate the automation afterward.
Review the Analyze phase before deployment
During the Analyze phase, CMJ will show which objects are being added, updated, or overwritten. Carefully review this step to avoid unexpected overwrites of workflows, screens, or other shared configurations.
Do not disable Integrity Check
Disabling the Integrity Check is not recommended because it can cause inconsistencies or data corruption during deployment. Always resolve the reported errors instead.
Best practices for smooth deployments
Keep Jira and CMJ versions aligned across environments.
Regularly run the Integrity Check on both source and target instances, not just before deployments.
Clean up unused or disabled automation rules, workflows, and custom fields.
Standardize naming conventions for workflows, screens, and schemes to avoid accidental overwrites.
Use a lower environment (such as staging or test) to dry-run deployments before applying them in production.
Review the Analyze phase results thoroughly and plan adjustments before confirming deployment.
Document which apps and custom field types are in use, especially if they are tied to automations or workflows, to ensure they exist in both environments.