What is an API or cql to get a list of spaces that the current user is watching?
Hi @Anuja Deshpande,
have you tried this:
https://your-domain.atlassian.net/wiki/rest/api/content/search?cql=watcher=currentUser()
EDIT: Oh, this returns all pages the user is watching, not all spaces. I'm not sure whether you can actually get all watched spaces directly. But maybe you can use the result of this CQL, to gather all spaces that the current user is watching pages in and after that check all the spaces against the space watchers API. But then you could also probably just get all spaces and loop over them directly. Might even be faster, depending on the amount of spaces.
Cheers,
Sven
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.