Skip to content

Commit 8693ea1

Browse files
tansukagonchik
authored andcommitted
[Confluence] Expand get_page_child_by_type (#876)
1 parent 35d0416 commit 8693ea1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

atlassian/confluence.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,21 +57,24 @@ def page_exists(self, space, title):
5757
log.info('Page "{title}" does not exist in space "{space}"'.format(space=space, title=title))
5858
return False
5959

60-
def get_page_child_by_type(self, page_id, type="page", start=None, limit=None):
60+
def get_page_child_by_type(self, page_id, type="page", start=None, limit=None, expand=None):
6161
"""
6262
Provide content by type (page, blog, comment)
6363
:param page_id: A string containing the id of the type content container.
6464
:param type:
6565
:param start: OPTIONAL: The start point of the collection to return. Default: None (0).
6666
:param limit: OPTIONAL: how many items should be returned after the start index. Default: Site limit 200.
67+
:param expand: OPTIONAL: expand e.g. history
6768
:return:
6869
"""
6970
params = {}
7071
if start is not None:
7172
params["start"] = int(start)
7273
if limit is not None:
7374
params["limit"] = int(limit)
74-
75+
if expand is not None:
76+
params["expand"] = expand
77+
7578
url = "rest/api/content/{page_id}/child/{type}".format(page_id=page_id, type=type)
7679
log.info(url)
7780

0 commit comments

Comments
 (0)