Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When performing snapshot deployment using CMJthe Configuration Manager for Jira app, the below error occurs :

Infowarning

“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' “

...

  1. Analyze the Atlassian Jira logs and find which custom field is causing the error as in the below example:

Code Block
Caused by: java.lang.IllegalStateException: More than one match is found for Custom field '<customfield name>'.

2. Remove the duplicate custom fields from the column of the filter.

In the below

...

sample screenshot, you can see multiple ‘RCA Class’ fields present in the column layout of the filter

...

. Remove the duplicate

...

‘RCA Class’ fields from the filter column layout.

...

3. Create a new snapshot and deploy.

4. If there are a large number of filters having the same set of duplicate custom fields in their column layouts, you can find all those filters by running the below SQL.

Code Block
select cl.id, cl.username, cl.searchrequest, sr.filtername, cli.fieldidentifier
from columnlayoutitem cli, columnlayout cl, searchrequest sr
where cli.columnlayout = cl.id
and sr.id = cl.searchrequest
and cli.fieldidentifier IN ('customfield_xxxxx', 'customfield_xxxxx', 'customfield_xxxxx')
order by cl.id, cl.searchrequest
Info

Note: In the 5th line of the SQL query, you need to mention the duplicate custom field ids IDs along with the original custom field idID.

  • Run the SQL above and save the results as CSV.

  • Filter all custom fields differently from the original custom field.

  • In Jira, open each filter and remove the columns with duplicate custom field names.

  • Recreate the snapshot and deploy.

...