Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation: adding labels based on title of parent page

melanie_boehmer
Contributor
July 7, 2025

Hi

I am fairly new to Confluence automation and have tried creating a rule, where in a page tree where the parent page has a specified word in the title, all child pages and the parent page get a specified label. We have a central application in our company that most people in our department work with and therefore we have many pages relating to this app. As they are mostly under one parent page named after this app, this would be a huge time saver for us. 

I have tried the following structure, but that does not work. Has anyone created a similar rule before or could give me some insight in how to implement such a rule? (placeholder for the name of the app added for privacy reasons).

image.png

2 answers

0 votes
Aron Gombas _Midori_
Community Champion
July 8, 2025

@melanie_boehmer As @Bill Sheboy wrote, the Scheduled trigger will not produce a list of pages.

You need to add a Related entities branching component to the rule and use the corresponding CQL, something like:

title ~ "name of the app"
0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 7, 2025

Hi @melanie_boehmer 

I do not believe the Scheduled trigger for Confluence rules references any pages, and so the rule condition would find nothing.

When do you want to run this rule, such as when a page is created or edited?

Kind regards,
Bill

melanie_boehmer
Contributor
July 7, 2025

I mostly need it as a one time run. We are restructuring our Confluence site currently and are rearranging the pages. In the course of this rearranging, I want all of the pages under this particular parent page to get the label. Most of our teams are not using labels at the moment which is why a lot of the pages have no labels at all which limits our use of certain features in Confluence. 

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