Set all users as watchers for specific space

Yanick Belart
Contributor
July 11, 2016

Hi there

All users must be set as watchers for specific corporate spaces. Is there a easy way. We know a workaround, but there is a little problem: Set an fictitious user with a group-mail-account (mailing list). Each time somebody changes something in that space, everybody get informed through the mailing list. Now, the problem is: People could add themselves as a watcher, too. As a result, they get notifications twice. Can we prevent users to watch specific spaces or is there any other solution?

Thanks for helping us,
Yanick 

4 answers

1 accepted

1 vote
Answer accepted
Alex Yasurek
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 11, 2016

HI,

What you could do in that case is hide the watch button since you are already assigning everyone to watch it through that mail group. This could be done through CSS or Jquery for specific spaces.

0 votes
Davin Studer
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 13, 2016

To hide the button in just defined spaces you could add something like this to the Custom HTML in Confluence Admin.

<script type="text/javascript">
AJS.toInit(function(){
	var keys = ["DEV","BLAH","STUFF"]; //Add space keys to hide the watch button here
	if(keys.indexOf(AJS.params.spaceKey) !== -1) {
		AJS.$('#watch-content-button').css('display','none');
	}
});
</script>
0 votes
Yanick Belart
Contributor
July 11, 2016

Hi Alex

Thanks you so much. Do you know how to hide the button in that specific space? When I hide the button in the Custom HTML I am going to hide it in every space. That is not the goal.

Thank you very much.

Alex Yasurek
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 12, 2016

HI,

Add that CSS to the style sheet within the specific space if you want it to only apply to a  one space. If you go to the admin section of the space, you will see a stylesheet panel under look and feel

 

0 votes
Yanick Belart
Contributor
July 11, 2016

Hi Alex

Thanks a lot. I already thought about that, but how to hide the watch button of that specific space. I do not get an identifier (unique class or id) in css. Any idea?

Thanks again,

Yanick

Alex Yasurek
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 11, 2016

I am on confluence 5.9 and can hide it with jquery using $("#watch-content-button").hide(); 

To use css just do #watch-content-button{display:none}

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events