Unable to search or filter search results when a custom field has context configured.
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
Summary
When performing a basic JQL search in the issue navigation screen, a custom field is not selectable with the following message:"<custom field name> is not applicable for the current project and/or issue type."
Environment
.
Cause
When searching in JQL basic it doesn't allow to search a field that has context applied to a sub-set of issue types if the option "Type" is set to All.
Relevant Feature Request: JRACLOUD-81429 - Ability to search in JQL Basic based on custom fields despite the issue type context applied to it
Solution
In order to perform a basic JQL search for a custom field with context, the search has to be filtered manually.
Based on this context, this custom field is only available in the story issue type in a project called Project A.
When filtering only the project, the error appears:
When filtering only the issue type, the error appears:
It will only work if both the project and the issue type are filtered: