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

1 vote
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 Leaders.
May 6, 2015

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

Suggest an answer

Log in or Sign up to answer