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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

What is the command to use to archive all our released versions in bulk?


Good morning Bob & Community,
Little help, please...

We have been using Jira Cloud for quite some time but we have neglected ever archiving any of our Jira Releases. There are in the vicinity of over 200 Releases/versions that are marked as Released that I need to change from Released to Archived. Naturally, I would rather not do this one at a time for every single release, I prefer to perform a bulk/batch action that will archive all of our released versions. From what I have seen, it seems like Jira Command Line Interface (CLI) is an excellent option for accomplishing this task.

Use Jira Command Line Interface (CLI) Windows client to archive all released versions by applying a command-line instruction in Jira Command Line Interface (CLI) client for Windows.

Definition of Done:
1. No errors in Jira Command Line Interface (CLI) client & successful execution of the command line instruction.
2. All 200+ released versions in Jira display their status as Archived.

1. My Jira Admin has successfully installed the Atlassian Jira Marketplace Jira Command Line Interface (CLI).
2. I have Jira admin access/permissions.
3. I have successfully, but manually, in the Jira GUI changed a single Released version to Archived.
4. I have successfully installed, configured, tested, & used the Jira Command Line Interface (CLI) client for Windows.
5. I have reviewed/read over the Jira Command Line Interface (CLI) documentation, the available commands & options, & the examples.
6. I have successfully generated the accurate list of releases that meet my requirements using the command "acli --action getVersionList --project "???" --options excludeArchived,excludeNotReleased" I have successfully sent the output from this command to both the console & a plain text file.
7. I have played around with "-a runFromVersionList --common "???..."" & "-a archiveVersion --project "???" --version "<I cannot figure this out>""
8. I do not have an SQL statement to provide for any option for any commands.

Current State:
I have attempted about two dozen permutations of the three commands listed above, but, every time, I receive an error message in the console. The error messages vary a lot & are too many in quantity to list here.

What would be the correct command for me to use in this situation, to archive all our Jira cloud released versions in bulk using the Jira Command Line Interface (CLI) client for Windows?

Thank you very much.


P.S. I just now found & attempted:  --action runFromVersionList --project "???" --common "-a archiveVersion --project "???" --version \\"@version@\\"" --continue

This also failed for me, giving me another console error message.

Run: -a archiveVersion --project ?? --version \\
Client error: '\\' is not a version for project ??.


2 answers

1 accepted

1 vote
Answer accepted

Hi @Martin 

Please try the following command and let us know the results. However, by using runFromVersionList you can run only for a single project.

--action runFromVersionList --project "TCN" --common "--action archiveVersion --file "list.csv" --project "@projectId@" --version "@versionId@""

We understand that you are trying to archive versions in your Jira and also we understood that you got a file that has the versions that should be archived as well as the project details. If so, you can use runFromCsv action as below:

--action runFromCsv --file "list.csv" --common "--action archiveVersion"

Please make sure that your file is in CSV format and columns will be as shown below:



Hello @Yoga Reddy {Appfire} ,

Thank you very much.  The first command listed worked just fine.  My problem is solved.  I will mark this as the accepted answer.



For anyone still looking for solution for this, the alternative is to create the release as archived from begining, or update it as archived by CI.

I have created a Github Action which can integrated to your CI and create the jira release as archived

for my case we automatically create jira release each time we build our app, and now the new builds (jira releases) are automatically created as archived and no longer need to worry about spend hours archiving them...


Github Action link:

Suggest an answer

Log in or Sign up to answer
Site Admin

Atlassian Community Events