Get members IDs who are mentioned on a page?

Peter Bunde Hansen July 18, 2017

Fellow sufferers!

I want to do the following:

 

1) Mention a subset of the space members, on a particular page.

2) Via REST API, get a list of all the members who are mentioned on that page.

Please explain if this is possible, and what are the necessary calls?

 

BW Peter Bunde Hansen

1 answer

0 votes
Matthias Gaiser _K15t_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 13, 2018

Hi @Peter Bunde Hansen,

I assume you are talking about Confluence and pages there, correct? I got a bit confused by the "Jira" category and the "jira-rest-api" tag.

So if I understood you correctly, you would manually execute step 1 and mention some people on a particular page and search for REST API ways in order to determine who is mentioned on a page.

You could simply get the content of a page via the confluence REST API and then search the body for a pattern which matches mentioned users. The corresponding call would probably be in the form <BASE_URL>/rest/api/content/PAGE_ID?expand=body.storage

For further reference, you can check out the confluence REST API examples or REST API reference.

Cheers,
Matthias.

Suggest an answer

Log in or Sign up to answer