Contact info from tabled returned as None

Xzavier
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 23, 2025

Hello

 

Confluence version 8.5.12

Data Center 9.2

I have corporate confluence server and I'm using python confluence api to get values from a table.  I use get_page_by_title() and I am able to get all the data in the table except for user contact info.

In the table, one of the columns contains zero or more users added with the @ symbol, so they appear as clickable links, however, when the column is retrieved with the api, it's contents are "None", how can I get a list of the users email addresses that are in that column?

 

Thank you

xp

2 answers

0 votes
Xzavier
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 31, 2025

Hello Mirek

With Beautiful soup, I am able to get ri:userkey data, but not the email I can see on the page, I need the email, how would I do that?

Mirek
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 31, 2025

@Xzavier 

As I mentioned in my answer if you can parse HTML with a mention then you have a user ID (it is in the URL) then you use this ID to get user email via rest call to user details. 

This is how I see should work. 

0 votes
Mirek
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 30, 2025

Hi @Xzavier 

Maybe parsing the page but in HTML (using for example Python library named BeautifulSoup) would give you links to the profiles (with an ID) from which you can later put it in a variable and get based on it information about specific users email addresses? 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events