We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f81391e commit 5ba8b75Copy full SHA for 5ba8b75
atlassian/bamboo.py
@@ -117,14 +117,18 @@ def plan_directory_info(self, plan_key):
117
resource = 'planDirectoryInfo/{}'.format(plan_key)
118
return self.get(self.resource_url(resource))
119
120
- def get_plan(self, plan_key):
+ def get_plan(self, plan_key, expand=None):
121
"""
122
Get plan information.
123
:param plan_key:
124
+ :param expand: optional
125
:return:
126
127
+ params = {}
128
+ if expand:
129
+ params["expand"] = expand
130
resource = 'rest/api/latest/plan/{}'.format(plan_key)
- return self.get(resource)
131
+ return self.get(resource, params=params)
132
133
def delete_plan(self, plan_key):
134
0 commit comments