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 6458085 commit 34f0025Copy full SHA for 34f0025
atlassian/confluence.py
@@ -117,6 +117,21 @@ def get_parent_content_id(self, page_id):
117
log.error(e)
118
return parent_content_id
119
120
+ def get_parent_content_title(self, page_id):
121
+ """
122
+ Provide parent content title from page id
123
+ :type page_id: str
124
+ :return:
125
126
+ parent_content_title = None
127
+ try:
128
+ parent_content_title = (
129
+ (self.get_page_by_id(page_id=page_id, expand='ancestors').get('ancestors') or {})[-1].get(
130
+ 'title') or None)
131
+ except Exception as e:
132
+ log.error(e)
133
+ return parent_content_title
134
+
135
def get_page_space(self, page_id):
136
"""
137
Provide space key from content id
0 commit comments