I am trying to figure out a way to utilize automation to remove existing labels on our confluence pages. I can set up automation then if I add the label, it runs and removes. I am trying to have it look at existing labels and remove (or change the label) through the automation process.
@michael_blake Since you are on Enterprise, you should be able to use Content Manager to find all content in a space that uses a specific label. You can select all of the items and then select the Automation action in the Content Manager to run your automation for those items. (see https://support.atlassian.com/confluence-cloud/docs/manage-your-content-tree/ and thank you to @Kris Klima _K15t_ for bringing this up in his response to https://community.atlassian.com/forums/Confluence-questions/Exporting-all-pages-from-a-space-to-run-an-audit/qaq-p/3184605).
I think you might need to have 2 automation rules (1 for deleting the label you filter for and 1 for changing the label), but this would at least help you to get the content to act on.
There is also a marketplace app, Label Manager, that allows you to do bulk edits of labels in a space. (Note: I do not use this app and am not affiliated with the producer; this just came up when I searched for how to remove labels in Confluence Cloud.)
Hello @michael_blake
Welcome to the Atlassian community.
When asking for help with an Automation Rule it will enable us to help you more effectively if you provide screen images showing your entire Automation Rule and images showing the details of each step.
Also it will help us if you provide more details about this statement:
"I am trying to have it look at existing labels and remove (or change the label) through the automation process."
How is the automation supposed to know which labels to remove? How is it supposed to know which labels to change?
Can you describe for us how you would accomplish this task manually, and provide example data? For instance:
If I have a page with labels X, Y, and Z
I know that Y needs to be removed because...
And I know that Z needs to be change to AB because...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to the community.
You can use a web request in your automation, to call an API endpoint.
With the API endpiont https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-labels-id-pages-get
You can get all pages that contain a specific label, use a branch to go over all pages to remove the specific label from each page
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks for the responses. I will work through these individually and validate which process works best. This mis my first exposure to the forum so I will definitely include more granular details for future requests to help others help me!
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.