Problem
I am writing an app that to fetch comments when a user's name is mentioned in the comment, from confluence server
Steps Taken
I am currently using the search REST API to search for all mentions for a particular user id, I go through all the pages returned and fetch the comments containing the user mention. I would have to replicate this search for all users in the database.
For example a search query on this API :
http://localhost:8090/rest/api/content/search?cql=(mention='ken' and created ="2020/01/02")
would result in a few page links which I can use to extract the comment I want.
Is there a better alternative to this solution ?