Error when clicking on a label in JIRA (The value '10001' does not exist for the field 'project')
Symptoms
When navigating to the issue navigator by clicking on a label in a Custom Label Field within a JIRA issue, the following error(s) occur:
The value '10001' does not exist for the field 'project'
The value can be any number, and represents a specific project on the instance. It is possible for this issue to show up several times for 1 search query.
Cause
The Custom Label Field in which the label is placed that you have clicked, has been assigned to specific Projects. The JQL that gets generated will look something like this:
project in (10751, 10650, 11150, 10009, 10010, 10251, 10350, 10006, 10351, 10450, 11050, 10451) AND cf[11062] = "label you have clicked"
Because the Custom Label Field has been specifically assigned to one or several projects.
These projects are being taken into consideration when generating the JQL.
If the user that has clicked the label has limited or no permissions to view any of these specified Projects, the error as shown above will get displayed instead.
In that case, the number 10001 gets replace by the actual Project ID(s) where the user has no access to (which can be more than 1).
Workaround
You can work around this issue by making the Custom Label Field a global field.
This way, no specific Projects will get included into the JQL and prevents users from running queries on projects they do not have access to.
We also have a bug report documented here.