Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Kanban JQL swimlane - Hide issues with particular label

Nick
Contributor
February 15, 2023

Hi people

Does anyone know what the query might be to exclude issues that contain a particular tag when I'm setting up a swimlane for my Kanban board?

Thanks,

Nick

1 answer

1 accepted

1 vote
Answer accepted
Dave Mathijs
Community Champion
February 15, 2023

Hi @Nick 

You can do this with the following JQL: 

(labels != yourLabel or labels is EMPTY)

Nick
Contributor
February 15, 2023

Thanks@Dave Mathijs - I did try this, but when I add this, it runs, but seemingly disregards the rest of my query. For example, here's my query:

project = xx AND issuetype in (Story, Task) AND labels != ABC OR labels is EMPTY AND fixVersion in ("Q1")

What's happening now is, whilst it is successfully excluding issues with the label; "ABC", it is no longer honouring the "Fix version", and instead returning a bunch of issues with NO "Fix version" assigned.

Maybe it is looking for "Fix version" to be EMPTY as well?

Thanks in advance,

Nick

Dave Mathijs
Community Champion
February 15, 2023

You need to place add the brackets before the first labels and add them after EMPTY.

project = xx AND issuetype in (Story, Task) AND (labels != ABC OR labels is EMPTY) AND fixVersion in ("Q1")

Like Nick likes this
Nick
Contributor
February 15, 2023

Worked a charm, and I learned something new! Thanks, @Dave Mathijs 

I'm super grateful!

Like Dave Mathijs likes this

Suggest an answer

Log in or Sign up to answer