Forums

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

JIRA REST API: User search not working as documented

Deleted user
June 9, 2021

I'm trying to use the user search to find a user by display name:

Example URL: https://<jira-instance>/rest/api/2/user/search?query=Test

 

Response:

{ "errorMessages": [ "The username query parameter was not provided" ], "errors": {}}

 In order to make this work I also have to supply the `username` attribute which defeats the purpose of the user search.

 

As far as I can tel, this request should work according to the documentation here: https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-user-search/#api-rest-api-2-user-search-get

 

Am I doing something wrong here?

 

1 answer

1 accepted

0 votes
Answer accepted
Benedikt Bjarni Bogason [Tempo]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 10, 2013
Hi David, One method would be either select one of those issues to track time against, or even create a separate issue that functions as a bucket for all the worklogs. Just be careful not to accumulate "too many" worklogs against a single issue, as this might aversely affect performance. If your projects are long running, create a new issue periodically (e.g. yearly or quarterly). I am sure there are other ways. Cheers, Benedikt, Tempo Team
David Hanson
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!
May 15, 2013

Hi Benedikt,

Thank you for your suggestions and timely response.

While this would work, it feels like a "hack". I think I will stick with our existing solution that addresses this need out of the box. Hopefully, in the near future, Atlassian will consider supporting time capture where the issue is optional. I would love to embrace Tempo and this is the only road-block.

If you would like more information about our workflow and the existing solution we use, please message me privately.

Thanks again for your help, Benedikt.

David

Viðar Svansson [Tempo]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 15, 2013

Hi David,

Would love to have a chat on this. It would be best to get the dialog going in our support project (which is private)

https://tempoplugin.jira.com/browse/JTS

Cheers,
Viðar

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events