You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I need to fetch all page comments include child comments.
I can only see this rest api to fetch page first level comments:
/wiki/rest/api/content/{id}/child/comment
I am using java with confluence cloud rest api
any idea is greatly appreciated.
Hello @WidWid ,
Welcome to the Atlassian Community!
The endpoint your have found is the correct one. However, in order to get all the comments you should use:
Another option could be:
For further details please see:
I hope this helps.
Cheers,
Dario
Hi @WidWid
I had a look in the REST API from confluence cloud and found the API, which you found:
But here it is described:
depth
string
Currently, this parameter is not used. Comments are returned at the root level only.
What I found is a way to get 2 level with this:
/wiki/rest/api/content/{id}/child/comment?expand=children.comment
I'm not very familiar with comments, but comments are "content" as well. So you can get all first level comments and make a for each and set another REST call with the ContentID's you found. This you can do within Java. Do you know what I mean?
Regards, Dominic
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond. A long time favorite, Team Cale...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.