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

Smart value to get to the body of the page - possible?

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?

3 answers

3 accepted

1 vote
Answer accepted
Trev Angle
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Feb 27, 2023 • edited

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? 

Like # people like this
0 votes
Answer accepted
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Feb 27, 2023

Hi @Dylewski_Rafal - welcome to the community,

this be done with confluence API. There was a similar post here in the community:

https://community.atlassian.com/t5/Confluence-questions/how-to-get-full-content-body-html-using-confluence-REST-API/qaq-p/710532

 

Best
Stefan

0 votes
Answer accepted
Brant Schroeder
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Feb 24, 2023

@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/ 

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..?

Suggest an answer

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

Atlassian Community Events