The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

user/search/assignable endpoint returns incorrect results

Dima Zharyi J
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 20, 2023

Hello!

I encountered one issue using user/search/assignable endpoint (Jira Cloud). When the parameter "query" consists of more than one word I recieve all results for the each word. For example I have 50k users and there is a user Will Harry. I need to search a user by query "Will Harry" and it will return all possible results for "Harry" and all for "Will" and the number of returned users is 300 (there are a lot of users Harry... and Will...). The first point is that I can't render on my app all 300 results and the second I need to get the original user Will Harry. I can filter received results by the initial query but another problem is that Harry Will could be the Public Name in his Jira account and nickname-harry as the Full Name (displayName field in the Jira response) and as I know Jira searches and returns results by the Public Name and the Full Name as well - in this case I will have only displayName nickname-harry and filtering will be incorrect because the original query is "Will Harry".

On the Jira Server the same endpoint has parameter "username" and it works pretty well and returns exact match of the query "username=will%20harry".

Is there any solution how can I search for exact match of the query in Jira Cloud?

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question