Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change 'username' parameter to 'query' for GDPR compliance #1119

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions jira/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2864,12 +2864,12 @@ def user(self, id: str, expand: Optional[Any] = None) -> User:
return user

def search_assignable_users_for_projects(
self, username: str, projectKeys: str, startAt: int = 0, maxResults: int = 50
self, query: str, projectKeys: str, startAt: int = 0, maxResults: int = 50
) -> ResultList:
"""Get a list of user Resources that match the search string and can be assigned issues for projects.

Args:
username (str): A string to match usernames against
query (str): A string to match users against
projectKeys (str): Comma-separated list of project keys to check for issue assignment permissions
startAt (int): Index of the first user to return (Default: 0)
maxResults (int): Maximum number of users to return.
Expand All @@ -2879,7 +2879,7 @@ def search_assignable_users_for_projects(
ResultList

"""
params = {"username": username, "projectKeys": projectKeys}
params = {"query": query, "projectKeys": projectKeys}
return self._fetch_pages(
User,
None,
Expand Down