Hi,
we have the following filter:
project = XYZ AND issuetype = Bug AND fixVersion = XY-2021-nn OR labels = Bugs2021-nn ORDER BY issuetype ASC, key DESC
Now we would like to exclude some bugs. We tried to add for example
AND affectedVersion != "not-for-buglist"
The bug that has this affectedVersion was excluded, but also all bugs that has the affectedVersion not set were excluded.
How can we just exclude the bugs from the list that has affectedVersion set to "not-for-buglist"?
Regards
Stefan
project = XYZ AND issuetype = Bug AND (fixVersion = XY-2021-nn OR labels = Bugs2021-nn) and (affectedVersion is EMPTY or affectedVersion != "not-for-buglist") ORDER BY issuetype ASC, key DESC
Maybe you were missing the "is empty" part? Because contrary to popular expectation just saying a value != X will make Jira ignore all issues where there is a null value, it will just filter out anything having a value, just not X.
Also added extra brackets at the beginning - unless you intent to filter across the whole instance.
With the OR it will just do 2 searches really, left part, right part, then join them together. This would mean that in your original query you were filtering across the whole instance.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.