Confluence: How stop watching multiple pages in one operation?

Steve Fogel August 27, 2014

Hi...I managed to end up watching 75 pages in one Confluence space, and I don't see a way in email preferences to stop watching all of them. Looks like I have to click "Stop watching" next to each page. Any way to do this in bulk? Thx

3 answers

1 accepted

0 votes
Answer accepted
waynewong
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 27, 2014

Hi there,

You can click on your profile >> Watches to list out all your subscriptions.

Click on "Stop Watching" to disable them.

Hope this help.

Thank you.

Regards,

Wayne Wong

0 votes
Anton Kulikov April 15, 2021

if you have scriptrunner

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
Ethan Foulkes
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 27, 2015

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events