Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,987
Community Members
 
Community Events
176
Community Groups

Tag Confluence page creator in comment added via REST API

We manage a knowledge base review process for our Confluence articles from a Jira Service Management project. 

When the article comes due for its annual review I want to add a comment to the article using a JSM automation with a 'Send web request' action. In the comment I want to tag the Confluence article creator. 

Each article has a corresponding JSM task the use to 'track' the KB articles. The creator of the article is also set as the 'reporter' on the JSM issues. 

I tried sending this body in the 'Send web request'. 


{
"type": "comment",
"space": {
"key": "TSS"
},
"body": {
"storage": {
"representation": "storage",
"value": "[~accountid:{{reporter.accountId}}] please review."
}
},
"container": {
"id": 1538850821,
"type" : "global"
}
}


This successfully creates a comment, on the article, but the reporter ID doesn't result in a tagged user in the comment. It looks like this...

[~accountid:xxxxxxxxxxxxxxxxxxxxxxxx] please review.

(I masked the account ID for this posting)

Is there a way to do this?

1 answer

0 votes

Hi @Matt Baker,

It could be worth considering using Automation for Confluence to support with this use case - you can read more about it here:
https://community.atlassian.com/t5/Confluence-articles/Introducing-Automation-for-Confluence/ba-p/1978202

 

Cheers,

Charlie

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events