Skip to content

Commit

Permalink
Fixing get_user_by_name
Browse files Browse the repository at this point in the history
  • Loading branch information
Guy Rozendorn committed May 5, 2020
1 parent ac19017 commit 3a8fcf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/infi/jira_cli/jira_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def is_user_exists(username):
@cached_function
def get_user_by_name(name):
users = get_jira().search_users(name)
return users[0].key if len(users) == 1 else None
return users[0].name if len(users) == 1 else None


from .custom_field_editor import get_options_for_custom_field, get_custom_field_id_by_name

0 comments on commit 3a8fcf9

Please sign in to comment.