It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Get members IDs who are mentioned on a page?

Peter Bunde Hansen Jul 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 Sep 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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Next-gen

Introducing subtasks for breaking down work in next-gen projects

Teams break work down in order to help simplify complex tasks. This is often done iteratively, with tasks being broken down into smaller tasks and so on until the work is accurately captured in well-...

10,672 views 49 52
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you