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
Hi, I'm trying to use Confluence Automation for some auto-tagging. I want to tag the page when some keywords are added to the page's contents. I know I can use {{page.title} smart value to get the title of the page. Is there a way to get the body or contents of the page?
If not using smart values, do you have any other suggestions for analyzing the page's contents to determine if some keywords exist?
Hi @Dylewski_Rafal, Trevor from the Confluence automation team here.
I have seen people access the page body in an automation rule by using the Confluence REST API together with the "Send web request" action. You can access the HTTP response in later components with the {{webRequest.body}} smart value. So you could potentially use that smart value in a comparison condition to achieve your use case. Check out the other accepted answers for a link explaining how to use the REST API to get a page body.
This feels like it would be a common requirement for many users and not having access to the page body feels like it would limit the practical use-cases for confluence automations. Are there any plans for Atlassian to include {{page.body}} as a smart variable?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Dylewski_Rafal - welcome to the community,
this be done with confluence API. There was a similar post here in the community:
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Dylewski_Rafal Welcome to the Atlassian community
I am not aware of a smart value for the body or content of a page. More information about available smart values can be found here: https://support.atlassian.com/cloud-automation/docs/smart-values-in-confluence-automation/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you. I studied it carefully. If not via smart values, what other approach do you suggest to scan through the page contents? I guess we would need to create some custom Forge app..?
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.