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)".
"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):
"labels NOT IN (*) EXCEPT IF labels in (x, y, z)"<-- I know "except if" probably doesn't exist
"labels in (x, y, z) AND labels NOT IN !(x, y, z)"
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.
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.