Script to add multiple user to watch multiple spaces?

Trinh Nguyen September 3, 2015

Hi

 

I would like to add multiple users to watch multiple spaces in Confluence - preferrable through script or directly into the database. Is it possible and how?

3 answers

0 votes
Stephen Deutsch
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.
September 4, 2015

Hi Trinh,

You can use this User Macro I wrote to add space watches for multiple users (unfortunately, you have to do it one at a time, but it's not impossible):

https://bitbucket.org/stephendeutsch/confluence-user-macros/src/39c3a025dacc6b45abc0105f0b7a21a7375690b4/bulk%20remove%20watchers/remove%20watches%20for%20user.vm?at=master

0 votes
bruce szalwinski September 3, 2015

Confluence REST API docs are at Confluence REST Api docs are at https://docs.atlassian.com/atlassian-confluence/REST/latest/. You might find something there.

0 votes
Rodrigo Girardi Adami
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 3, 2015

Hi Trinh,

I wasn't able to find this functionality in Confluence. I believe it doesn't exist from default. You may want to try to use the CLI from Bobswift which may provide this functionality.

I hope this helps!

Regards,

Rodrigo

Bob Swift OSS (Bob Swift Atlassian Apps)
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.
September 3, 2015

Unfortunately, Confluence doesn't provide the ability to set space watches for another person - see https://jira.atlassian.com/browse/CONF-22313. The CLI can't work around that limitation. It is different for page watches. Here is the documentation for the addWatch action found on https://bobswift.atlassian.net/wiki/display/CSOAP/Reference. Add watch to page or space for a user. Any user can be specified for page watches. Only the current user is valid for space watchers.

Rodrigo Girardi Adami
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 3, 2015

Thanks for clarifying this information and the feature request link @Bob Swift [Bob Swift Atlassian Add-ons]!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events