'Assign an issue to a user. None will set it to unassigned. -1 will set it to Automatic.
:param issue: the issue to assign
:param assignee: the user to assign the issue to'

@translate_resource_args
def assign_issue(self, issue, assignee):

    url = (((self._options[u'server'] + u'/rest/api/latest/issue/') + str(issue)) + u'/assignee')
    payload = {u'name': assignee}
    r = self._session.put(url, data=json.dumps(payload))
    raise_on_error(r)
    return True
