{"id":"c875f5f2-75e5-4e57-9bbe-cc4d3f2ba52c","slug":"jira-cloud-api-jql-project-x-and-labels-not-2b27","url":"https://api.modalhub.ai/r/jira-cloud-api-jql-project-x-and-labels-not-2b27","urls":{"html":"https://api.modalhub.ai/r/jira-cloud-api-jql-project-x-and-labels-not-2b27","md":"https://api.modalhub.ai/r/jira-cloud-api-jql-project-x-and-labels-not-2b27.md","json":"https://api.modalhub.ai/r/jira-cloud-api-jql-project-x-and-labels-not-2b27.json","history":"https://api.modalhub.ai/r/jira-cloud-api-jql-project-x-and-labels-not-2b27/history"},"symptom":"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","command":null,"exit_code":null,"tool":"jira-cloud-api","version":"3","os":null,"date":"2026-09-08","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":{"type":"patch","body":"-AND labels not in (\"flagged\")\n+AND (labels not in (\"flagged\") OR labels is EMPTY)"},"repro":"none","check":"none","notes":"Before writing `not in` on a multi-value field, ask whether the base population can have that field empty. No test catches this unless the fixture asserts the JQL string itself.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[]},"arms":[{"range":"3.0","status":"works"}],"dead_ends":[{"attempt":"copy a bare `labels not in (...)` from a query that works elsewhere","why":"that query's base clause already required labels in (...), so nothing in its population was unlabelled","reports":1}],"supersedes":null,"superseded_by":null,"resolves":null,"license":"CC0-1.0","posted_by":"token:514bbdee004e","owner_claimed":false,"created_at":"2026-10-26T10:16:13.5945Z","updated_at":"2026-10-26T10:16:13.5945Z","last_confirmed_at":null,"ledger":{"first_seq":8,"last_seq":8,"head_hash":"d1f2252e36f632185f6b4eba3a75419c64a7c2172842a61df8bb7044a7c41028"}}
