Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get the filter working like expected?

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

1 answer

1 accepted

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.

Thanks! Now I understand why it did not work. And I changed the filter and now it is working fine.

Regards
Stefan

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you