Forums

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

Can I target a query based on a label of a parent page?

benjaminbach July 24, 2025

Automation based off a page id or title is hardly automation, as a new rule must be made for each page. 

I'd like to have a rule, where, upon editing a page, if the parent page of that page has a label x, label x is applied to the page which was just edited, and if that page had label y, label y is removed.

the rule as written "validates", and a very similar one was offered by the AI bot, and it even "triggers" in the audit log, but it does not actually work. 

Is
`IF {{page.parent.label}} contains x` 
valid approach?


----
edit


I want to flow labeling downstream for capture of topic hierarchy to assist users in good data governance of documentation so that it can be searched more accurately and suggested page topics are more relevant 

WHEN a page is edited,
WHERE parent page has labels * , 
THEN add labels * to page

3 answers

2 votes
Rajat Pratap Singh
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 24, 2025
benjaminbach July 29, 2025

correct similar (inherit parent object's meta values), but not same 

where that request is...

WHEN a page is edited
IF it is in Folder X
THEN add 'label-1' and 'label-2'

 

my request is...

WHEN a page is edited
WHERE parent has labels *
THEN add labels * to page

1 vote
Lucas Modzelewski _Lumo_
Atlassian Partner
July 25, 2025

I’ve built an app to sync labels. Currently, it supports syncing labels to the parent page based on included pages.

In the future, I plan to add more dynamic behaviors, like two-way syncing, syncing across the page tree, and even turning folders into labels (that one's still a work in progress 😉).

You can check it out here (and add it to your watchlist to get notified about new versions): https://marketplace.atlassian.com/apps/1238065/smart-label-sync?hosting=cloud&tab=overview 

benjaminbach July 29, 2025

looks promising, but i'm more so looking to get labels to travel downstream, and it looks like yours is having them flow upstream :) 


Aron Gombas _Midori_
Community Champion
July 30, 2025

@benjaminbach If this sort of syncing is an acceptable solution, then you could try to build an automation rule.

For every "labels changed" event, run the CQL:

ancestor = <id of the content whose labels just changed>

... and then add/remove the same label to all the contents in the result set.

It is worth a try.

0 votes
Aron Gombas _Midori_
Community Champion
July 24, 2025

You cannot access the attributes of the parent using smart values. In fact, the set of smart values is fairly limited.

Suggest an answer

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

Atlassian Community Events