This pre-deploy error appears when the deployment preview includes a custom field context which isn't global and isn't assigned to any projects.
What triggers this error?
This error is triggered when trying to deploy a Jira Custom Field Context, which:
Is not global
Is not referenced by any projects in the deployment plan
Jira requires non-global field contexts to be referenced by at least 1 project. (Learn more about field contexts in Atlassian's documentation for Jira Cloud or Jira Data Center.)
How can I solve this?
The detailed error message indicates whether the field has other, valid contexts (which are global, or attached to other projects). If the field has another valid context, you can continue the deployment without deploying the specific context.
In case this context is the only one associated with the field, there are 2 possible ways to resolve the error:
Make this field context global.
Go to Jira, and make this field context global. Note: this may affect performance; read more about it in the Atlassian documentation mentioned above
Include the project(s) that reference this field context in the deployment.
Go to "Back to Selection" and find the
CustomFieldContext
.Under "USED BY", find the project(s) associated with the context.
Navigate to the project and select only the update to the
fieldContexts
to include the reference to the custom field context.Go to "Preview Deployment" to continue the deployment process.
โ