How to use Confluence automation to add labels to existing pages without a specific trigger

Keeley Sorokti
Contributor
January 30, 2025

I would like to add labels to existing Confluence pages without a particular trigger (e.g. editing a page, creating a page). I just want to set up a rule that looks for all pages that contain a certain keyword or phrase and then automate adding labels. 

I am new to working with automations and have successfully set some up that work when a trigger happens. But how do I retroactively go back and get the labels on for existing pages? 

2 answers

2 accepted

3 votes
Answer accepted
Dan Breyen
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 30, 2025

Hi @Keeley Sorokti you can run your automation at a schedule time.  If you look at the templates for the Confluence Automations, look at "Replace a label on all pages when scheduled (recurring)" as an example.  That's probably the easiest way for something like that to work. I do that a lot for Jira Automations. The trigger is 'Scheduled'.

You can run it a few times, then turn it off, or reuse the logic for a different phrase.

Hope that helps.

 

Keeley Sorokti
Contributor
January 30, 2025

Thanks Dan! I was playing around with that and got some warnings I didn't fully understand, but glad to know I was on the right track. Will keep playing around. 

0 votes
Answer accepted
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 30, 2025

Hi @Keeley Sorokti 

There's no specific condition based on word/phrase for the body of text, only for the page title. But you can look into smart value condition or CQL condition...

There might be an app for that, though, or a programmatic way.

Note: Whatever you choose, you might wanna deploy it in a testing space :) 

Keeley Sorokti
Contributor
January 30, 2025

Thx Kristian!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events