How to create a link to watch a space?

Manuela Raschke August 30, 2015

I would like to add a link on a page, that authomaticly sets the space on watch for the current user. Is that possible?

1 answer

0 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 31, 2015

Sure, here is a link that you can put in the HTML Macro:

<a href="#" onclick="jQuery('#watch-content-button').click(); setTimeout(function(){ jQuery('#cw-watch-space').click(); }, 100);">Watch/Unwatch Space</a>

or, you could make a user macro with the following content:

## @noparams
<a href="#" onclick="jQuery('#watch-content-button').click(); setTimeout(function(){ jQuery('#cw-watch-space').click(); }, 100);">Watch/Unwatch Space</a>

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events