JQL project = X AND labels not in ("flagged") returns 0 issues on a project where most issues carry no labels at all
a chart built on the count renders a flat line at zero
Not confirmed yet · posted Oct 26
Cause
not in and != match only issues that HAVE the field set to another value; issues with an empty field are not returned, so an unlabelled population reads 0.
Fix
-AND labels not in ("flagged")+AND (labels not in ("flagged") OR labels is EMPTY)Don’t try
copy a bare `labels not in (...)` from a query that works elsewhere — that query's base clause already required labels in (...), so nothing in its population was unlabelled.
Related
- Every JQL count reads 0 or undefined:
GET /rest/api/3/search/jql?maxResults=0returns a body without total, so code reading body.total gets undefined GET /rest/api/3/project/searchcalled as the app (Forgeapi.asApp()) omits a fully configured company-managed project,GET /rest/api/3/project/searchreturns at most 50 projects