Maximum Number of Unarchived Projects

This built-in script is available for Data Center only.

Use this built-in script to find projects that have not been updated for a specified amount of time, and archive them. View the Atlassian documentation on the recommended maximum number of active projects. 

Reporting

This built-in script returns all projects that have not been updated a specified amount of time. For example, you can choose to display projects that haven't been updated in 6 months, 1 year, 2 years, or a time length specified by you. 

You can also use the Project filter to archive the projects that fit the criteria of the script.

Running this built-in script

  1. From ScriptRunner, navigate to Built-in Scripts → Guardrails: Maximum number of unarchived projects.
  2. Select an option from the Elapsed time since last update drop-down list. 
  3. If you wish to filter projects, enter a script into the Project filter script console. You can select Example scripts to display examples that target projects, for example, though categories, names, or the project lead.
  4. Select Preview to display the projects that match the criteria you have specified. 

  5. Select Archive X project(s) to archive the chosen project(s). 

Restoring archived projects

If you accidentally archived a project and wish to restore it, see how to restore and re-index a project in the Atlassian documentation.

Archiving tip

Delete archived projects after a set amount of time

We recommend that you delete archived projects if they haven't been restored or asked about since X months/years after archiving. The amount of time depends on your company policy when it comes to such matters. This is a process you can set up automatically with ScriptRunner, or perform manually. 


On this page