Hi,
I have a use case where I want to query all watched questions for a specific user (using the REST API), but I'm not sure how to do this.
For example: all watched questions for user sysadmin
The result is not satisfying as it also displays pages.
Ideas anyone?
Thanks!
I have not played with Questions for Confluence as I assume that is what you are using.
According to the Confluence REST API field reference for type question is not supported but then I guess this type will be available when this module is installed in Confluence.
But have you tried something like this where you omit the type parameter?
https://www.someurl.com/rest/api/latest/search?cql=watcher+=+sysadmin+and+type!=page&maxResults=100&startAt=0
Regards
Lasse Langhorn
Hi @Lasse Langhorn Thanks for your reply!
Correct, I'm using Questions for Confluence (and the corresponding documentation on https://docs.atlassian.com/confluence-questions/rest/resource_SearchResource.html)
Based on your answer I've tried the following:
And this still does not seems to work as it's returning questions I'm (sysadmin) not watching.
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.