I'm trying to figure out how to delete all labels on a page when a trigger occurs. I see a way to delete specific labels, but is there a way to delete all of them?
If it's NOT possible to create this automation, is there a way to restrict a space so that only specific Users can create labels?
Thank you!
As per the documentation what you can try is use the "Remove Label" Action (https://support.atlassian.com/cloud-automation/docs/actions-in-confluence-automation),
with the page.labels smart value (https://support.atlassian.com/cloud-automation/docs/smart-values-in-confluence-automation/#hardBreak).
Let me know if this works.
It appears that neither directly nor through a third-party app, that it is possible to control the use of labels. Such a pity. Labels could be very powerful, but given their implementation by Atlassian, the likelihood of clutter to the point of uselessness is very high. It would be great if we could better control and manage their use.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Paul Rathgeb
So you want to "Delete" the label altogether, and not just remove them from a certain page? Is that the use case you're targeting here?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Very close. The use case is: WHEN a trigger occurs, THEN remove all labels from the page.
I don't necessarily know what the labels are, but I know I want them all removed.
Another approach would be to simply limit who is allowed to add labels, but so far the resounding answer is, that's not possible.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Paul Rathgeb with this as your use case "WHEN a trigger occurs, THEN remove all labels from the page", my first answer still applies.
As per the documentation what you can try is use the "Remove Label" Action (https://support.atlassian.com/cloud-automation/docs/actions-in-confluence-automation),
with the page.labels smart value (https://support.atlassian.com/cloud-automation/docs/smart-values-in-confluence-automation/#hardBreak).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks. Unless I'm missing something, this rule requires one to know the label one wishes to remove. In my scenario, I won't know the label name, I just want to remove all labels from the page. Is there a wildcard character that removes all labels with this rule?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The Smart value page.labels.name does exactly that.
You can read up more on Smart values from the previously shared links 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wow! That works very well! Thank you!!!
I used a different trigger, as I am not sure how Manual Triggers work, but the rest is fantastic!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Paul Rathgeb why do you need to remove all labels from certain pages.
We have a Confluence app, Label Manager by Easy Apps (it's also a feature of Space Content Manager), so I'm curious if this is a use case we should consider building.
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.