You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I am attempting to mention users with the new ability in Quarto to publish to Confluence. Quarto allows for raw Confluence blocks, so my plan is to put in the source code for mentioning particular users in there. I found that in the Resource Identifier section of the Confluence Storage Document page there is the "user" resource referenced with
<ri:user ri:userkey="2c9680f7405147ee0140514c26120003"/>
I replaced this with the appropriate user key, but could not get it to work properly with the @User_name text.
What is the raw confluence code that I should use for a user mention? Thanks!
Hello @Christopher Atterbury ,
The page has several types of BODY representation and if you use final HTML, you should consider 'VIEW' representation:
```
<a class=\"confluence-userlink user-mention\" data-username=\"XXXX\" data-account-id=\"XXXX\" href=\"https://x.atlassian.net/wiki/people/XX?ref=confluence\" target=\"_blank\" data-linked-resource-id=\"98305\" data-linked-resource-version=\"1\" data-linked-resource-type=\"userinfo\" data-base-url=\"https://x.atlassian.net/wiki\">John Doe</a>
```
It is persisted in the database as STORAGE state:
<ac:link><ri:user ri:account-id="5d26e612590c9c0c25f78ee8" /></ac:link>
but is rendered in HTML (VIEW) when viewing it in UI.
You can use REST API to get this data:
https://xx.atlassian.net/wiki/rest/api/content/1111?expand=body.view
https://xx.atlassian.net/wiki/rest/api/content/1111?expand=body.storage
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.