Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Run automatic rule to labels pages that are archived

Leslie Fobi November 25, 2025

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

 

2 answers

0 votes
Laura Campbell
Community Champion
November 25, 2025

Hi @Leslie Fobi 

Confluence Automation can for sure add labels when you archive a page. It would look like a bit like this Screenshot 2025-11-25 at 16.59.23.png

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/

0 votes
Kristian Walker _Adaptavist_
Community Champion
November 25, 2025

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

Leslie Fobi November 26, 2025

Thank you @Kristian Walker _Adaptavist_ for script runner. I need to check on that since we dont have one. 

Leslie Fobi November 26, 2025

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

 

Screenshot 2025-11-26 at 10.15.07.png

Laura Campbell
Community Champion
November 26, 2025

@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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events