Hi,
I want to add a link/button on a page that, when clicked, makes the user watch a certain page in a certain space (both different from the page where the link is on). How can I accomplish this?
Some background: we are running into the issue that using the "include page" macro to include a page breaks the watch functionality. The user has to watch the source page instead of the actual page, which is very confusing for end users. If there is a better solution than a watch link/button I'm all ears!
You could probably use the josn-rpc api to add the watch. Another option would be to use the addpagenotificationaction.ajax page and POST the id of the real page ... this is how Confluence adds the watch itself. The form data to post is pageId(page id of the real page) and it looks like it also passes atl_token (the user's token ... you can get this via JavaScript using AJS.params.atlToken;). If you know javascript it shouldn't be too hard to use jQuery to do it using Atlassian's namespaced version of jQuery AJS.$
addpagenotificationaction.ajax URL
http://wiki/users/addpagenotificationajax.action
JSON-RPC url
http://wiki/rpc/json-rpc/confluenceservice-v2/watchPage
Hi there,
You could try using a third-party plugin for watching the page.
Hope this will help you .
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think that has what he is looking for.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.