Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Stop watching multiple pages at one time

Daisuke Niwa
Contributor
July 16, 2012

Hello there,

We are using Confluence 4.2.

Some of our users did not realize that they would watch pages and other content they created or edited automatically.

They would like to stop watching these contents, however it takes time to do that one by one.

Is there any way to stop watching multiple Confluence pages at one time? Please let me know.

Regards,

Daisuke Niwa

5 answers

1 accepted

0 votes
Answer accepted
hsuhailah
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.
July 16, 2012

There's no such feature but there are open feature requests on this at:

- https://jira.atlassian.com/browse/CONF-8458

- https://jira.atlassian.com/browse/CONF-12314

Daisuke Niwa
Contributor
July 16, 2012

Thanks Hanis,

Understood the situation.

Regards,

Daisuke Niwa

3 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.
August 17, 2014

If you want a little more fine-grained control over the pages you want to remove watches for, I have also released a set of free user macros that lets you remove watches by selecting with checkboxes (you can also select an entire space at a time). To run them, you have to have the remote API enabled. You can find them here:

https://bitbucket.org/stephendeutsch/confluence-user-macros/src

Click on "bulk remove watchers" and you will see two macros there:

"remove watchers" lets you remove all watchers for a page and its children (you can also re-add in case you want to do some temporary action like moving a bunch of pages), and

"remove watches for user" allows you to remove your personal page watches, or it allows administrators to remove page watches for another user, for example, if an employee leaves the company and you want to remove their watches.

They're pretty easy to use, just copy and paste into the user macro field, set them as visible only for administrators, embed in a page, and you're all set to go.

If there's enough demand, I could release it as a plugin on the marketplace, so send me some feedback: stephen.deutsch@zanox.com

It should be compatible back to Confluence 4, so if you're still using an older version, it might be helpful. Hope it can also help someone!

Milo Chan May 10, 2017

I just came across this, and I think it's really useful! Thank you for writing it. It's a bit quirky, in that it asks to refresh the page when you apply the changes with the buttons, but works great.

Chris Kuperstein
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 4, 2017

Wow, this worked perfectly. Thanks!

Atul Patil May 20, 2019

Thanks @Stephen Deutsch2 

Meric Ayman December 5, 2019

Thank you so much @Stephen Deutsch2 ! It works perfectly!

0 votes
Anton Kulikov April 15, 2021

this code help me

import com.atlassian.confluence.mail.notification.NotificationManager
import com.atlassian.spring.container.ContainerManager
import com.atlassian.sal.api.component.ComponentLocator
import com.atlassian.confluence.pages.PageManager
import com.atlassian.confluence.search.service.ContentTypeEnum
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import com.atlassian.confluence.user.UserAccessor
import com.atlassian.confluence.spaces.SpaceManager
import com.atlassian.user.UserManager 
Logger log = LoggerFactory.getLogger("console") 

def userManager = ComponentLocator.getComponent(UserManager)

NotificationManager nm = ( NotificationManager) ContainerManager.getComponent(
"notificationManager")
PageManager pageManager = ComponentLocator.getComponent(PageManager)
ContentTypeEnum ctp = ComponentLocator.getComponent(ContentTypeEnum)
UserAccessor userAccessor = ComponentLocator.getComponent(UserAccessor)
def spaceManager = ComponentLocator.getComponent(SpaceManager)
def users = userManager.users.find{it.getName() == "username"} 
def nfu = nm.getNotificationsByUser(userAccessor.getUserByName(users?.getName()))
nm.removeAllNotificationsForUser(userAccessor.getUserByName(users.getName()))
return  nm.getNotificationsByUser(userAccessor.getUserByName(users.getName()))
0 votes
Marketa Dvorackova
Contributor
October 16, 2014

Hello everyone,

mentioned earlier our add-on Watch Remover https://marketplace.atlassian.com/plugins/it.logontec.dev.watchremover for a quick removal of watches on pages. There have been many compliments on the add-on in the sense of "quick, clear and easy" and a request to create the same thing for the admin.

Today we have released a new version 0.4.0 with this particular feature, that gives the admin the power to cancel watches for any user within Confluence. The administration part of Watch Remover still offers all the functions of the profile part, i.e. stop watching all for a selected user, stop watching all pages that have not been updated for 60+ days and stop watching all pages within a selected space.

Hope you all like it and come up with other suggestions on how to make it even better! Please try, review and give us a feedback.

Regards,

Marketa

Milo Chan May 10, 2017

Any plans to upgrade this to work with the more recent versions of Confluence?

0 votes
Marketa Dvorackova
Contributor
August 17, 2014

Hello everybody,

I understand this topic is a bit older, but maybe it would help you to know that we have just released a free plugin that can do exactly what you are looking for: cancel the watches on pages without having to do that one by one. For now you can choose if you want to cancel all of the watches you have (start with a cleared table so to speak) or watches on pages according to the spaces they are in, or watches that are on pages that have not been modified for more than 2 months (keeping up-to-date).

If you are interested, you can check it out here https://marketplace.atlassian.com/plugins/it.logontec.dev.watchremover

Hope it helps someone!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events