Using automation, is it possible to give a label if a page is create under a specific folder?
for example :
pages created under OPS folder receive automatically the label how-to-ops
pages created under INF folder receive automatically the label how-to-inf
Hi @Simone Falchi -- Welcome to the Atlassian Community!
Yes, that is possible. For example...
When you also specifically need to check the name of that folder, another condition may be added to check the smart value: {{page.parent.title}} For your scenario, you may use an if / else block for the different test values and labels.
In my opinion, the documentation for Confluence automation rules is quite limited, including what is / is not available for pages, folders, etc.: https://support.atlassian.com/cloud-automation/docs/smart-values-in-confluence-automation/#Content-properties--pages-and-blogs-
And so, experimentation is key! I recommend creating test rules which only write values to the audit log to learn what works before adding label values, etc.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Simone Falchi One way to do this without automation (since you're on Standard and only get 100 rule executions per month for your entire instance), is to create a separate page template to be used for new pages in each folder (for example, How To OPS template and How To INF template). If you also want different content or structure on the pages in these folders, separate templates might have more benefits for you.
Anyway, you can add the label on the template, which would then automatically be applied to each new page. For details, see https://support.atlassian.com/confluence-cloud/docs/create-a-template/#Add-labels-to-a-template
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.