affectedVersion != version OR affectedVersion is EMPTY does not work

Florian Zink July 10, 2016

Hi all,

a colleague recently wrote a JQL which amongst other things, filters on affectedVersion, f.e.

AND (affectedVersion != ABC_4.13.4  OR affectedVersion is EMPTY)

 

However, the result the query provides is only '!=ABC_4.13.4'. It does not list any issues where the affectedVersion is EMPTY.

Is this a bug or works as designed? Does anybody here now how to achieve the desired result?

Thanks!

1 answer

0 votes
Petar Petrov (Appfire)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 10, 2016

This should work - there is probably something else in your query that filters those issues. Given the fact that you have an "AND" at the beginning tells me that what you have posted is just a subquery. Check what other conditions you have in the query and find the one that is restricting your issues from showing.

Florian Zink July 11, 2016

Sadly it doesn't work. Even if I strip the query down to:

project = ABC AND fixVersion = ABC_4.13.4  AND (affectedVersion != ABC_4.13.4  OR affectedVersion is EMPTY)

 

Ok, I think this might be an index issue. Because if I do:

project = ABC AND fixVersion = ABC_4.13.4 and affectedVersion is EMPTY

I get 0 results.

However, if I do:

project = ABC AND fixVersion = ABC_4.13.4

 I get 12 results, of which 6 apparently have an EMPTY affectedVersion.

Suggest an answer

Log in or Sign up to answer