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
Looks similar to https://community.atlassian.com/forums/Confluence-questions/Rules-add-label-based-on-parent-folder/qaq-p/3075834
There is an enhancement request:
https://jira.atlassian.com/browse/CONFCLOUD-80608
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
looks promising, but i'm more so looking to get labels to travel downstream, and it looks like yours is having them flow upstream :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You cannot access the attributes of the parent using smart values. In fact, the set of smart values is fairly limited.
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.