The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

What are alternatives to webhooks for confluence server when trying to get user mentions?

sabzx
February 5, 2020

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 ?

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events