Forums

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

Jira Bulk Archive Automation - Instructions

tomasz_kowalczyk
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 19, 2026

Introduction:

Jira natively allows users to archive work items, but only one by one. There is currently no option to archive work items in bulk through the standard user interface. We have created an automation rule to overcome this limitation, allowing you to label multiple work items at once for automatic archival, without having to manually process each ticket.



Steps to execute:

To archive a group of work items, follow these steps:

  1. Search for the work items you wish to archive in the Issue Navigator.
  2. Bulk Edit the work items (or edit them individually).
  3. Add the label force-archive to the work items.
  4. Wait. The automation rule runs overnight, so the issues will be processed and archived automatically during the next nightly window.

Note on Sub-tasks: Due to Atlassian's native limitations, it is not possible to archive a sub-task. You can archive its parent work item. This will automatically archive any sub-tasks attached to that parent work item. Consequently, if you apply the force-archive label to a sub-task, it will be ignored by the automation.

IMPORTANT: The automation processes a maximum of 100 work items per execution (during the nightly windows). To handle larger backlogs of archival requests, the rule runs every 10 minutes between 22:00 and 06:00 (UTC).


 

Technical Instructions:


Suggested Rule Name: Bulk Archive Issues with force-archive label

Trigger type: Scheduled

  • Advanced: Cron expression: 0 0/10 22-23,0-6 ? * *

Action: Lookup Issues: The automation looks up issues matching the following JQL query:

labels = force-archive AND issuetype NOT IN (subTaskIssueTypes())

If (compare two values) condition:

First value: {{lookupIssues.size}}

Condition: does not equal

Second value: 0

Log action: 

{ "issueIdsOrKeys": [ {{#lookupIssues}}"{{key}}"{{^last}}, {{/}}{{/}} ] }

Send web request:

{

"issueIdsOrKeys": [
{{#lookupIssues}}"{{key}}"{{^last}}, {{/}}{{/}}
]
}
  • Checked: Delay execution of subsequent rule actions until we've received a response for this web request
  • Headers:
    • Key: Authorization
    • Value: Bearer <your_api_token>

Screenshot 2026-04-29 063648.png

You can read more about the Service Accounts authorization here,

and how to create OAuth 2.0 credentials for service accounts: here


 

Permissions: 

  • To enable the archival capability, a specific group named archiver-system-accounts was created.
  • The service account your_service_account@serviceaccount.atlassian.com used by the automation is a member of this group.
  • This group has been added to all Permission Schemes under the "Archive Issues" permission to ensure it has access across all projects.

 

If you have any questions, please feel free to comment on this post!

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events