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: 

JQL for searching users

Dickson
May 6, 2015

Similar to the search_users function in the JIRA package in Python: http://pythonhosted.org//jira/_modules/jira/client.html#JIRA.search_users

How would you replicate the same search via JQL? 

For instance I want to search for all users that have the name "Bob Smith"

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Nic Brough -Adaptavist-
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 6, 2015

JQL is for finding issues, not users.

I'm not sure I can add a lot to that statement.  JQL absolutely requires that you phrase the question as "show me issues that match <question>".   Not users.  

If you want to search for users called Bob, then you need to go into the user maanagement and ask that to show you Bob.  Nothing to do with JQL

Dickson
May 6, 2015

Okay, is there a way to search for users via the REST API then? How does the python package manage to do it?

JamieA
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 6, 2015

The answer to that is in the code you posted: https://docs.atlassian.com/jira/REST/latest/#d2e4353

TAGS
AUG Leaders

Atlassian Community Events