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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.