Skip to content

Instantly share code, notes, and snippets.

@jbl0ndie
Created January 28, 2022 16:11
Show Gist options
  • Save jbl0ndie/a773b26c0a53c708b458841256aed5d1 to your computer and use it in GitHub Desktop.
Save jbl0ndie/a773b26c0a53c708b458841256aed5d1 to your computer and use it in GitHub Desktop.
Excluding labels in Jira with JQL
AND Labels != XYZ
# Jira returns only cards with a label but not XYZ
# does not return cards without a label, which is unexpected when you first think of it
# is returning cards with labels, specifically labels !=XYZ
# Solution: be explicit
AND (Labels is null OR Labels != XYZ)
# returns all cards without a label or a label which is not XYZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment