Forums

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

Automatically assign a label if a page is created under a folder

Simone Falchi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 8, 2025

 

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

2 answers

1 accepted

2 votes
Answer accepted
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.
April 8, 2025

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

Simone Falchi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 10, 2025

Many Thanks @Bill Sheboy for suggestion,

I found the exact value condition {{page.parent.title}}

 

 

 

Like Bill Sheboy likes this
0 votes
Barbara Szczesniak
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.
April 9, 2025

@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 

Suggest an answer

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

Atlassian Community Events