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!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.