I am looking at options to force remove labels from Confluence pages for archival purposes. I have ScriptRunner for Confluence, and see the CQL script jobs under CQL Escalation scripts.
Has anyone had success utilizing this method? If so, do you have an example? My goal is to run a CQL: label="noarchive-single" or label="noarchive" on a cron and have the labels removed from those pages.
If not, how are you force removing labels on a schedule?
Notes: Confluence Server 6.13.7 / ScriptRunner 5.5.11
Hey Mike, this answer might come a bit late but you can use this example and alter it accordingly :
def pageManager = ComponentLocator.getComponent(PageManager)
def labelManager = ComponentLocator.getComponent(LabelManager)
def labelName = "test"
def label = labelManager.getLabel(labelName).getId()
The script above will delete a label by retrieving the label ID.
I hope this helps!
Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events