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?
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 :)
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.