Advanced Search: All issues I did not vote on

I would like a filter to show the current user which issues they did not vote on yet.

Project = X

Issue Type = Y

This is what I have and it doesn't work:

project = "X" AND issuetype = "Y" AND voter != currentUser()

Thank you

2 answers

1 accepted

Jobin's suggestion is good, but you could also try this:

project = "X" AND issuetype = "Y" AND (voter != currentUser() OR voter is EMPTY)

The example you gave will only find issues where someone has voted, but the current user hasn't, but will leave out any issues with no voters at all. The reason this works and the original doesn't is a peculiarity of how JQL treats empty fields and equality. When there are no voters, both "voter = currentUser()" and "voter != currentUser()" evaluate to false, but "voter is EMPTY" or "voter is NULL" will evaluate to true.

This may seem non-intuitive, but it's consistent with the way SQL treats null values, and since JQL is modelled after SQL, the architects decided that it would be important to keep the SQL semantics in JQL.

So glad you responded - works great!!

Thank you

1 votes

Try this:

key not in votedIssues() and project = X and issuetype = Y

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,815 views 11 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot