Skip to content
Merged
Changes from 3 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
4 changes: 2 additions & 2 deletions atlassian/jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,12 +916,12 @@ def assign_issue(self, issue, assignee=None):
"""Assign an issue to a user. None will set it to unassigned. -1 will set it to Automatic.
:param issue: the issue ID or key to assign
:type issue: int or str
:param assignee: the user to assign the issue to
:param assignee: the user accountId to assign the issue to
:type assignee: str
:rtype: bool
"""
url = "rest/api/2/issue/{issue}/assignee".format(issue=issue)
data = {"name": assignee}
data = {"accountId": assignee}

return self.put(url, data=data)

Expand Down