Skip to content

Commit 1d6f767

Browse files
authored
Add issues to backlog method added (#902)
Implemented similar to the add issue to sprint method.
1 parent c82c87f commit 1d6f767

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

atlassian/jira.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3588,6 +3588,21 @@ def tempo_teams_get_memberships_for_member(self, username):
35883588
# Agile(Formerly Greenhopper) REST API implements
35893589
# Resource: https://docs.atlassian.com/jira-software/REST/7.3.1/
35903590
#######################################################################
3591+
def add_issues_to_backlog(self, sprint_id, issues):
3592+
"""
3593+
Adding Issue(s) to Backlog
3594+
:param issues: list: List of Issue Keys
3595+
eg. ['APA-1', 'APA-2']
3596+
:return: Dictionary of response received from the API
3597+
3598+
https://docs.atlassian.com/jira-software/REST/8.9.0/#agile/1.0/backlog-moveIssuesToBacklog
3599+
"""
3600+
if not isinstance(issues, list):
3601+
raise ValueError("`issues` param should be List of Issue Keys")
3602+
url = "/rest/agile/1.0/backlog/issue"
3603+
data = dict(issues=issues)
3604+
return self.post(url, data=data)
3605+
35913606
def get_all_agile_boards(self, board_name=None, project_key=None, board_type=None, start=0, limit=50):
35923607
"""
35933608
Returns all boards. This only includes boards that the user has permission to view.

0 commit comments

Comments
 (0)