Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

JIRA filter for showing me ONLY CERTAIN labels

Trying to construct a JIRA filter that shows results where the labels contain any combination of (x, y, z), and nothing else.  Something like "labels ONLY IN (x, y, z)".

A "labels IN (x, y, z) AND labels NOT IN (...)" clause could work but there are too many labels to exclude, and they're always changing.

Possible ideas (no luck with any of them yet):

  • Wildcards?  "labels NOT IN (*) EXCEPT IF labels in (x, y, z)"  <-- I know "except if" probably doesn't exist
  • Selecting the inverse?  "labels in (x, y, z) AND labels NOT IN !(x, y, z)"

3 answers

3 votes
Randy Rising Star Feb 21, 2017

Closest you can get (without a plugin) is to do something like:

labels = 'x' and labels='y' and labels='z' and labels not in ('a', 'b', 'c')

Then review your query results by sorting by the labels field and add to the "not in" collection any additional labels you need excluded.

Edit: i just realized you said "any combination of".  If that's the case then your query of using labels in() and labels not in () would get you closest to it without plugins.

0 votes

It might be too old, but I think this is answered here:

labels in (x) AND labels in (y) AND labels in (z)

I have had a similar problem and found no existing filtering methods on JIRA helpful.

As we're only few sprints older, I overcame this problem by modifying the labels.!

Just used "x_y" as a combined label instead of using two labels as x and y.

This could not be a solution for all, however this could be a way out for few until filters get better.

Suggest an answer

Log in or Sign up to answer