When using confluence.get_page_by_id() to get some data from a page, how can I get all comments?

Graessel, Marco (M.)
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 27, 2023

Using following code:

"page_id = xxx/child/comment'
get_comment = confluence.get_page_by_id(page_id=page_id_c,expand="body.storage")

I could see some comments, but not all - just 25 out of about72.

 

1 answer

0 votes
Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 27, 2023

Hi @Graessel, Marco (M.)

Welcome to the Atlassian community!

Are you using the Python module?

When you look at the official API codumentation you will see that some info must be "expanded" before the API returns it.

This get content by id page will show you the possible expansion values. I think you should use children.comment. I'm not 100% sure it will work. There might be some pagination in place.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events