Automation: add label to alle pages of a page tree or space

Jesper Jordan
Contributor
January 27, 2025

Hello there,

I would like to add a specific label to alle pages of a page tree or maybe even a whole space.

Can someone help me with how to configure an automation, that does the job for me?

Bests

6 answers

1 vote
Kristian Klima
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 27, 2025

Hi @Jesper Jordan 

You can use a free app called Pages Manager by Ricksoft.

2025-01-27_13-34-10.gif

You can load multiple spaces in there, expand all pages, and apply the label to multiple spaces at once.

Jesper Jordan
Contributor
January 27, 2025

Okay, thanks, that'll help.

ChatGPT tells me there is no automation solution for my request, is it right?

Like Kristian Klima likes this
Kristian Klima
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 27, 2025

Very likely. I checked triggers on pages and it'd be hard to find a common denominator to label all pages based on existing options that would work without additional manual trigger.

I guess it could be done programmatically (I'm not an expert) but somebody took advantage of that already and built a free app that does that.

 

There's actually another app - Scroll Variants, which is an extension of Scroll Documents - that can label all pages, or a parent + child pages, but it serves a completely different purpose (Conditional content) and labelling is a part of the setup.

Jesper Jordan
Contributor
January 27, 2025

But I do have the option to set a manual trigger in the automation. 

I just don't see how to actually trigger it.

 

Like Aubrey Robertson likes this
Kristian Klima
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 27, 2025

Try exploring smart buttons - I've never used them, but if I understand it correctly, you would have to manually visit every single page.

https://support.atlassian.com/cloud-automation/docs/smart-buttons-for-automation-in-confluence/

I'd use the app... :) 

(I'm not affiliated with the vendor, I just use the app)

0 votes
Aubrey Robertson
Contributor
February 11, 2025

@Jesper Jordan I had this same problem, "Where is the manual trigger button?!"  The documentation always shows it in the top right of any given Confluence page.  Well, I gave up on this for a week or two, and then I found it in the ellipsis menu for any given page.  I have the same use case as you.  I still haven't figured out how to add labels to just a page tree though.  My first attempt added all the label to every page in the entire space.

Kind of annoying there are so many "That's not possible, buy this app" answers here.  It is clearly possible:

Screenshot 2025-02-11 135425.png

Stavros_Rougas_EasyApps
Atlassian Partner
February 11, 2025

@Aubrey Robertson what use case did you solve using automation?

As for "I still haven't figured out how to add labels to just a page tree though" it is not what you want to hear but likely requires a paid app.

Here is a screenshot from our doc space using Label Manager by Easy Apps (our app). You can choose any parent page and then add a label to it and all the children in one action.

Screenshot 2025-02-11 at 17.14.54.png

 

0 votes
Jesper Jordan
Contributor
February 3, 2025

a sufficient workaround with that free app in combination with automation is an "add label"-automation triggered by a page status change. then bulk-change the status via the free pages manager. Afterwards you might propbably want to the bulk-reset the page status.

 

0 votes
Jesper Jordan
Contributor
February 2, 2025

Thanks for the hints everyone.

Thing with the free app is, when I want to use it in bulk I overwrite every label that has been there.

 

0 votes
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 28, 2025

You can run CQL searches in automation rules against the ancestor field:

ancestor = 1234

...should return all pages that are descendants of the page with the ID=1234. (These are the pages that are in the tree rooted in #1234.)

Then, iterate over the result set and add the label to each item.

I haven't tried, but it should work.

Jesper Jordan
Contributor
February 2, 2025

honestly, I don't know where and how to do this.

Are you talking about the automation rule builder?

Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 3, 2025

Yes.

Build a rule that runs this CQL query and adds label to each search hit. Decide if you want to do this periodically or by a user click, and use the corresponding trigger.

0 votes
Stavros_Rougas_EasyApps
Atlassian Partner
January 27, 2025

@Jesper Jordan I think @Kristian Klima suggestion to use an app to bulk add labels might be your best bet.

I do not know of a labels app with such automation, sounds like an interesting idea.

We make a label manager app. We would be interested to learn more about your use case if you want to contact us.

Our label manager app. Are a few of them to consider.

 

Suggest an answer

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

Atlassian Community Events