Skip to content

Commit dbed26c

Browse files
committed
supervisor/jira_utils.py: Get JIRA username correctly from email
The username we need for other API calls is in the "name" field, not the "key" field.
1 parent 4135b31 commit dbed26c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supervisor/jira_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ def get_user_name(email: str) -> str:
518518
raise ValueError(f"No JIRA user with email {email}")
519519
elif len(users) > 1:
520520
raise ValueError(f"Multiple JIRA users with email {email}")
521-
return users[0]["key"]
521+
return users[0]["name"]
522522

523523

524524
@overload

0 commit comments

Comments
 (0)