How do you mention a user within the comment component of a Confluence automation rule? I found the following post, but adding [~accountId:user id] doesn't work. The comment writes it out literally instead of interpreting it as an @ mention.
Here's the comment component with the contents I've added to try to get an @ mention to work:
Here's the comment that gets produced:
This seems to be broken at the moment. I tested it and could not get it to work with the user id or smart values.
Ugh. Thanks for the double check. I'm going to open a support ticket with Atlassian and see if they have any guidance. I'll report back with what they say!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Gary SprossJust confirming if you opened a support ticket, and got any answer? I have the same problem. Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Rodney Dsouza _Atlassian Certified Expert_,
I did open the support ticket, but haven't gotten an answer yet. I received a response that they were able to replicate the behavior and have escalated it for review. They will reach back out regarding whether this is a bug and if there is any sort of workaround. Will update when I get more info.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Received a response from Atlassian.
@ mentions do not currently work in Confluence automation. There is this ticket, although it doesn't specifically reference Confluence automation. I was told my support ticket would be added to the suggestion ticket.
As a workaround, instead of utilizing the "Add Comment" component, the "Send web request" can be utilized. I've tested this out and it does work.
Here's the text from the "Custom data" section for easy copy/paste. You'll just need to update the account Id's. Note that this adds @ mentions to 2 accounts.
{
"pageId": "{{page.id}}",
"body": {
"representation": "storage",
"value": "<p>Test user comment on a page:</p><ul><li><p>User 1: <ac:link><ri:user ri:account-id=\"<ACCOUNT-ID>\" ri:local-id=\"<ACCOUNT-ID>\" /></ac:link> </p></li><li><p>User 2: <ac:link><ri:user ri:account-id=\"<ACCOUNT-ID>\" ri:local-id=\"<ACCOUNT-ID>\" /></ac:link> </p></li></ul><p />"
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.