Skip to content

Commit 5ba8b75

Browse files
author
Dmitrij Djachkov
authored
Add parameter expand into Bamboo get_plan method (#555)
* Confluence: add another method for getting space pages + exmpl + doc * Bamboo: get_plan: add expand parameter
1 parent f81391e commit 5ba8b75

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

atlassian/bamboo.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,18 @@ def plan_directory_info(self, plan_key):
117117
resource = 'planDirectoryInfo/{}'.format(plan_key)
118118
return self.get(self.resource_url(resource))
119119

120-
def get_plan(self, plan_key):
120+
def get_plan(self, plan_key, expand=None):
121121
"""
122122
Get plan information.
123123
:param plan_key:
124+
:param expand: optional
124125
:return:
125126
"""
127+
params = {}
128+
if expand:
129+
params["expand"] = expand
126130
resource = 'rest/api/latest/plan/{}'.format(plan_key)
127-
return self.get(resource)
131+
return self.get(resource, params=params)
128132

129133
def delete_plan(self, plan_key):
130134
"""

0 commit comments

Comments
 (0)