Problem Statement
Info |
---|
While using custom fields in apps like.. Create on Transition (or) Update on Transition, if you encounter that a custom field is not getting created/copied into a new issue. Also if you see the below error message in the logs then please make sure that your custom field name is given properly. If there are any leading/trailing spaces in the custom field name then it will be ignored during the 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
Code Block | ||||
---|---|---|---|---|
| ||||
ERROR: Custom field: 'XXXX' not found. Field was ignored. |
Environment
Version | Server 8.0.2 | ||
---|---|---|---|
Application | Jira | App Version | Database Type
Cause
...
Custom field name
...
(s) with leading or trailing spaces is ignored during the transition leading to the mentioned error.
Solution
Please follow the below steps to fix the issue.
...
Remove the leading or trailing spaces from the custom field name by performing the following:
- Navigate to Jira application's > Issues.
- In the left sidebar, click Custom fields under the Fields section.
- In the list of custom fields, navigate to the required custom field and click > Edit.
- In the Field Name, verify if there are any leading /or trailing spaces in the name. If so, remove the spaces and save update the custom field.
See the following image for a custom field name that has trailing spaces: