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
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
Hello, I'm trying to add a comment with a mention to some users using Confluence API.
This is the request:
"value": "THIS S A TEST. PLEASE IGNORE THIS COMMENT.<ac:link><ri:user ri:userkey=\"userId1\"/></ac:link>, <ac:link><ri:user ri:userkey=\"userId2\"/></ac:link>, <ac:link><ri:user ri:username=\"name.surname\"/></ac:link>",
It is working, but the users' name is "unlicensed user" and these users have a license.
Hi @María Cabrera, are you using the account id for the userkey? Try that instead; it should work. You can mention someone and view the storage format of the page to confirm the syntax.
I tested it myself, and it turns out that userkey works, but the account id doesn't. You can get the userkey by mentioning a user on a page, publishing it, and accessing the "view storage format" settings (More actions > Advanced details > View Storage Format).
I know Atlassian is deprecating username and userkey from the APIs and using the account id instead. Maybe this is yet to roll out.