Sprint Column Layout issues when deploying a snapshot
Problem
Regarding CMJ’s response after a failed migration, this error indicates that there is more than one custom field with the same name in the column layout of a filter that the user is trying to migrate:
“Unable to perform deployment: Unable to apply change 'type: change, old value: , new valueJiraConfigurationRoot#root/JiraFilter<Filter Name>_<user>/JiraColumnLayout# <Customfields present in coloumnlayout of the filter>, feature: columnLayout' “
This can be a valid configuration for the user for many reasons. Despite that, this is an invalid configuration for CMJ when performing a deployment. This is because when CMJ is creating the filter, in the phase of setting the column layout, CMJ is iterating over all column layout items. When it comes to the given custom field, an ambiguous result is returned - there is more than one custom field with the same name in the column layout of the filter.
In this case, user interaction is required because CMJ could not possibly know which of the two (or more) fields to use. As this is a breaking change, CMJ rollbacks everything and stops the deployment.
Solution
The solution is to remove the duplicate custom fields from the column of the filter and then re-create the snapshot. CMJ’s logging provides enough information for such filters and points for which custom fields there is more than one match.
In example:
Caused by: java.lang.IllegalStateException: More than one match is found for Custom field 'External issue ID'.