Unable to perform deployment: Update/create failed for request type field 'custom field' due to hidden fields

Deployment fails with an error "Unable to perform deployment: Update/create failed for request type field customfield_1000 of request type <request type name> in project <project_name>" due to hidden custom fields. 

Example error code:

com.botronsoft.jira.jiraservicedeskintegration.api.ServiceDeskIntegrationException: Update/create failed for request type field customfield_1000 of request type request1 in project project1. Fant ikke feltet i Jira.com.botronsoft.jira.jiraservicedeskintegration.api.ServiceDeskIntegrationException: Update/create failed for request type field customfield_1000 of request type request1 in project project1. Fant ikke feltet i Jira. at


This happens while searching for the customfield_1000 field, where it is hidden in the request1 request type.


Solution:

  • Create a copy of the existing request type.
  • Perform bulk edit to move all the existing issues from this request1 request type to the new request type
  • Then delete the custom field and bulk move all issues back to the original request type (This step is needed because if the hidden field is removed, then all issues might lose their request type).
  • Once the above steps are done, the deployment of the snapshot can be made successfully.