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
5 changes: 4 additions & 1 deletion atlassian/confluence.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,13 +522,14 @@ def get_draft_page_by_id(self, page_id, status="draft", expand=None):
# operate differently between different collaborative modes
return self.get_page_by_id(page_id=page_id, expand=expand, status=status)

def get_all_pages_by_label(self, label, start=0, limit=50):
def get_all_pages_by_label(self, label, start=0, limit=50, expand=None):
"""
Get all page by label
:param label:
:param start: OPTIONAL: The start point of the collection to return. Default: None (0).
:param limit: OPTIONAL: The limit of the number of pages to return, this may be restricted by
fixed system limits. Default: 50
:param expand: OPTIONAL: a comma separated list of properties to expand on the content
:return:
"""
url = "rest/api/content/search"
Expand All @@ -539,6 +540,8 @@ def get_all_pages_by_label(self, label, start=0, limit=50):
params["start"] = start
if limit:
params["limit"] = limit
if expand:
params["expand"] = expand

try:
response = self.get(url, params=params)
Expand Down