Skip to content
Merged
Changes from all 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
15 changes: 14 additions & 1 deletion atlassian/jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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