Skip to content

Commit

Permalink
Init payload iwth both username and query
Browse files Browse the repository at this point in the history
`query` is a different parameter from `username` so it shouldn't replace
it actually. Tested with v3 API and it's working.
  • Loading branch information
eljulians committed Apr 23, 2020
1 parent b328c3e commit 241daa3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions jira/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2841,13 +2841,11 @@ def search_users(

params = {
"username": user,
"query": query,
"includeActive": includeActive,
"includeInactive": includeInactive,
}

if query:
params["query"] = query

return self._fetch_pages(User, None, "user/search", startAt, maxResults, params)

def search_allowed_users_for_issue(
Expand Down

0 comments on commit 241daa3

Please sign in to comment.