You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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!
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.