Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.3.4, 2.4.4, 3.0.0
-
None
Description
`dev/merge_spark_pr.py` script always fail for some users (e.g. yumwang) because they have different `name` and `key`.
JIRA Client expects `name`, but we are using `key`.
def assign_issue(self, issue, assignee): """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 :param assignee: the user to assign the issue to :type issue: int or str :type assignee: str :rtype: bool """ url = self._options['server'] + \ '/rest/api/latest/issue/' + str(issue) + '/assignee' payload = {'name': assignee} r = self._session.put( url, data=json.dumps(payload)) raise_on_error(r) return True
This issue fixes it.
- asf_jira.assign_issue(issue.key, assignee.key) + asf_jira.assign_issue(issue.key, assignee.name)
Attachments
Issue Links
- links to