Mention user in comment via Confluence Automation

Gary Spross
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 21, 2024

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:

Screenshot 2024-06-21 121755.png

Here's the comment that gets produced:

Screenshot 2024-06-21 121834.png

1 answer

1 accepted

1 vote
Answer accepted
Shawn Doyle - ReleaseTEAM
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 21, 2024

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.

Gary Spross
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 24, 2024

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!

Rodney Dsouza _Atlassian Certified Expert_
Contributor
June 26, 2024

@Gary SprossJust confirming if you opened a support ticket, and got any answer?   I have the same problem.   Thanks

 

Gary Spross
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 26, 2024

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.

Like # people like this
Gary Spross
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 28, 2024

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.

Screenshot 2024-06-28 130350.png

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 />"
}
}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events