It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bulk archive or delete release versions

We recently started using JIRA Fix Versions to track releases. However, due to legacy automation that is no longer used, there are over 3,000 meaningless unreleased versions in our JIRA project.

Instead of going through and individually archiving or deleting each of these releases, is there a way to make a bulk update?

Creating a new project is not an option.

I am using Jira Cloud and have access to Scriptrunner.

3 answers

1 accepted

0 votes
Answer accepted

Hi Sam,

Thank you for your question.

I can confirm that the reason that the solution above will not work inside of ScriptRunner for Jira Cloud is due to the fact the code you have provided is for ScriptRunner for Jira Server and this will not work as Atlassian only provides a rest API in Jira Cloud and does not provide a Java API in the cloud-like they do in Jira Server.

You can see more detailed information on the differences between the cloud and server versions inside of our documentation page located here.

I can confirm that Atlassian does not provide a rest API to bulk delete or archive versions but do provide the Delete Version API which you can use to delete the version or the Update Version API which you can use to update a version and to set it to archived in order to archive it.

You will be able to use this API to write a script where you can define a list which contains the ids for each version that you want to update and then to loop through each version and to update it to either delete it or archive it using the APIs specified above. 

If this response has answered your question can you please mark it as accepted so that other users can see it is correct when searching for similar answers.

Regards,

Kristian

Thank you Kristian.

I wound up manually closing the versions as I did not see your answer until now. However, it looks like the Delete or Update Version endpoints would have been a more effective solution.

Sam

Thank you for the quick response Lava.

Unfortunately, this solution requires importing versionManager, and I don't believe you can use imports with the JIRA Cloud version of Scriptrunner.

Do you know if there is a workaround to use a similar script in JIRA cloud?

Hi, you are more than welcome to try my plugin for free - Version Manager for JIRA cloud.

Not only does it let you easily delete / archive selected versions, but it also lets you delegate the manage versions permission to whoever you decide and assign components to versions.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you