I want to Auto-label archived pages and pages that would be archived in the future. Has someone already worked on this. Key Notes
When a page in the space(s) is archived, it gets the label archived.
Pages that already have the label are not duplicated.
When a page is unarchived, the label archived is removed.
Is there a working workflow for this
Hi @Leslie Fobi
Confluence Automation can for sure add labels when you archive a page. It would look like a bit like this
As for removing the label if a page is unarchived, there is not a trigger "unarchive" or "restore" for the moment in Confluence Automation. However you might be able to find a work around by describing some other conditions, for example if content is under XYZ parent page, or has a status XYZ, the label "archive" should be removed.
Check out the Confluence Automation documentation to get started https://support.atlassian.com/confluence-cloud/docs/what-is-confluence-automation/
Hi Leslie,
If you have ScriptRunner for Confluence cloud, then you could achieve this requirement using a Script Job.
This would allow you to schedule a script that would run on the specifed schedule and add labels to the archived pages returned by a CQL
We have an example script here that shows how to add labels to outdated pages that you could use as a reference and modify to achieve your requirements.
If you need further help creating the Script, then you can raise a support request here so the ScriptRunner support team can assist with this.
I hope this information helps.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you @Kristian Walker _Adaptavist_ for script runner. I need to check on that since we dont have one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Laura Campbell with regards to this workflow, i run into several errors and dont know where that is coming from. Can you take a look and check if there is any input
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Leslie Fobi Archived pages are already indicated in the audit log with the space name, although there is not a link to page (just the title). Is there a reason you need to add more details?
I would try testing your rule step by step, so first seeing if it correctly adds the value to the audit log.
Potentially I would first add the label to the page, and then add information to the audit log. My guess is that is what is causing the problem.
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.