diff --git a/atlassian/jira.py b/atlassian/jira.py index 345560025..37dc0ca6d 100644 --- a/atlassian/jira.py +++ b/atlassian/jira.py @@ -2474,6 +2474,19 @@ def get_sprint_issues(self, sprint_id, start, limit): url = 'rest/agile/1.0/sprint/{sprintId}/issue'.format(sprintId=sprint_id) return self.get(url, params=params) + def update_rank(self, issues_to_rank, rank_before, customfield_number): + """ + Updates the rank of issues (max 50), placing them before a given issue. + :param issues_to_rank: List of issues to rank (max 50) + :param rank_before: Issue that the issues will be put over + :param customfield_number: The number of the custom field Rank + :return: + """ + return self.put('rest/agile/1.0/issue/rank', data={ + 'issues': issues_to_rank, + 'rankBeforeIssue': rank_before, + 'rankCustomFieldId': customfield_number}) + def health_check(self): """ Get health status @@ -2485,4 +2498,4 @@ def health_check(self): if not response: # check as support tools response = self.get('rest/supportHealthCheck/1.0/check/') - return response + return response \ No newline at end of file