I'm using ScriptRunner for Confluence.
I want to create a script macro how can un-watch all Confluence content for a specific user?
I know how to create a macro with params but as anybody knows a commend for us-watching?
Additionally, Is it possible to remove all user drafts in Confluence (bulk with ScriptRunner for Confluence)?
I will attempt to answer the first of your questions.
This should remove all content that a specific user is watching. I tried it quickly in the script console and it seems to be working.
def notificationsManager = ComponentLocator.getComponent(NotificationManager)
def userManager = ComponentLocator.getComponent(UserManager)
As for the second question, I don't see any reason why it shouldn't be possible to remove all drafts for a specific user, but I have not tried it before.
Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events