Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira Software - Running searches (either typing "my" or with “smart queries" activated)

Daniele Battistoni April 16, 2020

Hi everybody,
I heard that typing “my” in the search bar, the system should return all the issues assigned to the admin.
In effect, doing so the system returns a certain number of issue (in this case 41, as you can see from the snapshot below).

1_my.jpg

 

2_esito di my.jpg


You can also see that the JQL says “assignee = currentUser()”

 

3_esito di my.jpg


If then I click on the pop-up on the right-hand corner that says “Smart querying activated. Run search without smart query”, the system returns to me only 5 issues.

 

4_esito di run search.jpg


But if then you have a look at what’s displayed on the JQL bar, you see that’s the same as before, that is: assignee = currentUser()”

 

5_esito di run search.jpg


Does anybody know why?

Scrolling down each task one by one, I’ve also noticed that in the first case (typing “my” in the search bar), I ended up with all the tasks for which I am the admin, while, in the second case (running searches through “smart querying activated. Run search without smart query”), I ended up with issues that are either assigned to another user (I also have another account where I’m signed in as a developer, it belongs to another e-mail with which I'm not the admin) or unassigned.
Can anyone help me, please?
Thanks in advance,
Daniele

 

 

1 answer

1 accepted

1 vote
Answer accepted
Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 28, 2020

Hello @Daniele Battistoni ,

Thanks for bringing this one up, and looking at the details and it looks like you are running into the following Bug, noting I posted both the cloud and server version incase someone runs into this thread on the alternate platform:

The the expected behavior here is that when you type "my" in the search box the Quick search function uses the reserved word to run a search for issues assigned to the currently logged in user via the following JQL as covered in the Cloud and Server documentation for the feature here:

assignee = currentuser()

Then if you choose to run the search via the "Run search without smart query" option this drops the Quick search portion looking for "Assignee" search to a simple text search for the word you had listed, being "my" and thus doing a search for the following instead:

 text ~ "my" 

But, the BUG is occuring as the search box is still indicating that you are searching on "assignee = currentuser()", and if you look at the URL of the page you will see something like the following indicating the actual search being performed, and refreshing the page will show you the updated search in the search box:

https://<BASE_URL>.atlassian.net/browse/ABC-123?jql=text~%22my%22

the same can be seen if you type "My open bugs", the quick search will look for Bug issues types status open and assigned to you via:

issuetype = Bug AND assignee = currentUser() AND status = Open

and if you run the "Run search without smart query" the search switches to "?jql=text~"my%20open%20bugs"" or the following but noting the original search is still shown in the quick search:

text~"my open bugs"

This one has a really simple but not obvious workaround, if you refresh the page you will be shown the actual JQL being used in the search box instead of the cached quick search.

Regards,
Earl

Daniele Battistoni April 29, 2020

Thanks Earl!

Like Earl McCutcheon likes this

Suggest an answer

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

Atlassian Community Events