You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
When viewing a blog post within a Confluence space, you only have the one option of "watch this Blog". Whereas on pages and spaces you can click on the "watch this space" option and add multiple users to watch the space or page all at once.
Is there something I can possibly do through an API call that might allow me to add a couple hundred users to watch a blog post?
Currently the only way is to make every user go to that specific page and watch the blog. Which can be a daunting task when you have hundreds of users that would have to do this action.
Dear @Jeremy Price ,
I think not possible out-of-the box. But If you have a list of user logins you could do with small script from outside via REST API:
https://docs.atlassian.com/atlassian-confluence/REST/6.6.0/#user/watch-addContentWatcher
Let me know if this could work for you - I can assist in scripting.
So long
Thomas
Thank you for your response. Something like that would work as I'm just looking to add multiple users to watch the blog space and nothing more.
If you have time I would appreciate your help in the scripting portion, as I'm not too well versed in making that myself.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear @Jeremy Price ,
to add a single user (watchman) as a watcher to a page with id 123456:
curl -X POST https://my.confluence.net/rest/api/user/watch/content/123456?username=watchman -H "Content-Type: application/json" -H "X-Atlassian-Token: no-check" -u admin:pass
The user "admin" needs administration privileges for the space. Now you just need to wrap a "for" loop around so that you can add multiple watchers to one page or multiple users to multiple pages. :)
So long
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for this, I will test it out on a blog page and see if I can add more than one user at once to a blog page;. Thanks again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
The above solution is for a particular blog post if I understand it correctly. Is there a way to bulk add users to watch the entire blog aswell? I cannot find any REST endpoint for that. I can find an AJAX action (addspacenotification.action) but seems not to be possible to input multiple users on that action (only logged in user by default).
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.