Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.