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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,551,712
Community Members
 
Community Events
184
Community Groups

JQL search not working

I have a saved JQL search to find issues that need assignment. But when I run the search, it often returns results that blatantly contradict the filters.

 

JQL: 

status in (Done, "In UAT") AND "Doc Team review[Dropdown]" = Needed AND "Doc Owner[User Picker (single user)]" = EMPTY ORDER BY fixVersion ASC, cf[10009] DESC, project ASC, created DESC

 

First result in the list: 

status = Done, which is correct

Doc Team review = Completed, which is wrong - should only find Needed

Doc Owner = (a specific user), which is wrong - should only find Empty

2023-04-10_8-03-06.jpg

2 answers

1 accepted

0 votes
Answer accepted
Walter Buggenhout _ACA IT_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 10, 2023

Hi @Beth Seitz and welcome to the Community!

I cannot see anything wrong with the query you shared there, but it does seem your search results are not consistent.

Getting inconsistent search results usually indicates a problem with your Jira instance's index. Reindexing should happen automatically in cloud and you cannot trigger a reindex yourself as a user.

If this behaviour continues, you may want to reach out to Atlassian support and have them look directly into your site.

Hope this helps!

0 votes
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 10, 2023

Hi @Beth Seitz , Welcome to the community.

One thing I would note is that you should use "is Empty" rather than "= Empty". However, that doesn't necessarily explain all of what you were experiencing. What I would like to suggest is let's break this down into simple components and test that first period having done that week and then reassemble it into a single JQL. Can you try the following and see what your results are?

  • "Doc Team review[Dropdown]" = Needed

    "Doc Owner[User Picker (single user)]" IS EMPTY

Hopefully we can get the results of those to JQL's to perform the way that you expect.

Thanks, had trouble finding the right syntax for empty. That gives me the same results.

I did notice that, in bookmarking the search, the bookmarked URL includes a Jira issue ID in it. I wonder if in running it from that bookmark, Jira is trying to include that named issue, and then returning something random in its place. It does seem to be just the first result in the list that often shouldn't be included at all.

Of course it also makes it fun to test, that I need to triage these issues out, so the queue is often empty.

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 10, 2023

While there may be some recent bug introduced that would explain things, that would not be my first suspicion. Did you try the single JQL statements I suggested?

Yeah, they work fine. Likewise if I edit the JQL and hit Search it seems to work fine. It's running from the bookmark where I get weird stuff. (Although now there are no issues that meet the full list of criteria, so I get the expected 'no search results'.)

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 10, 2023

I would ignore the bookmark for now. Does the full JQL work if entered as below? 

status in (Done, "In UAT") AND "Doc Team review[Dropdown]" = Needed AND "Doc Owner[User Picker (single user)]" is EMPTY

Sort of -- there are no search results now (as expected). (This is a triage search, so the issues fall out of it once assigned.)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events