Unable to copy a custom field value during issue transition

Problem statement

This article explains how to handle the error message (mentioned in the succeeding section) when the custom fields are not created or copied while using Create on Transition or Update on Transition respectively. The solution suggests ensuring the custom field name not having any leading or trailing spaces.

Error message

ERROR: Custom field: 'XXXX' not found. Field was ignored.

Environment

ApplicationJira

Cause

Custom field name(s) with leading or trailing spaces is ignored during the transition leading to the mentioned error.

Solution

Remove the leading or trailing spaces from the custom field name by performing the following:

  1. Navigate to Jira application's  > Issues.
  2. In the left sidebar, click Custom fields under the Fields section.
  3. In the list of custom fields, navigate to the required custom field and click  > Edit.
  4. In the Field Name, verify if there are any leading or trailing spaces in the name. If so, remove the spaces and update the custom field.

See the following image for a custom field name that has trailing spaces: