affectedVersion != version OR affectedVersion is EMPTY does not work

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

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.

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

685 views 6 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you