Confluence REST API - Watch Space and Descendants

Julie Torres May 13, 2021

Is it possible to watch a page AND the descendants through the Confluence REST API?

The UI has an option to watch with descendants, but I do not see the option to include descendants when calling the  /rest/user/watch/space/{spaceKey} API.

 

1 answer

1 accepted

2 votes
Answer accepted
Dominic Lagger
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 13, 2021

Hi @Julie Torres 

The UI only shows this option, because you have the app "ScriptRunner for Confluence" installed. Out of the box, this isn't an option in confluence.

Bug with ScriptRunner installed, you can use their API. For watching descendants, you can call this:

https://<<URL>>/rest/scriptrunner-confluence/descendants/latest/watch?pageId=<<pageId>>

It is a PUT operation with the pageId as a parameter.

I found this option with the chrome dev tools by clicking the "Watch descendants" button and analyse the REST calls.

Regards, Dominic

Julie Torres May 14, 2021

Thank you!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events