Forums

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

Jira Cloud: Bulk Archive Releases based on date and/or version string - Scriptrunner

Celina Kincaid
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!
November 14, 2023

Does anyone have information on how to bulk archive releases based on a date < X or where version name ~ '34.x'?

We have script runner as well if there is a way to do this via that tool.

Thank you in advance!

1 answer

0 votes
Kristian Walker _Adaptavist_
Community Champion
November 15, 2023

Hi Celina,

Please can I confirm by release do you mean Versions, which are created under a project settings page?

If so, you can call the Update Version rest API, which Atlassian provides using Scriptrunner to update a version and set its archived property to true.

This API takes the ID of the version to be updated as a parameter, as the Atlassian documentation states, so you would need to get a list of the IDs to update, and then you could write a script to make a rest call to update each version and archive it. 

To help create the list of IDs you could call the Get Project Versions API to get all versions for a project and extract the ids for the ones you wish to archive,

I hope this information helps.

Regards,

Kristian

Suggest an answer

Log in or Sign up to answer