Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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!
Nov 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 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
TAGS
AUG Leaders

Atlassian Community Events