Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Good morning Bob & Community,
Little help, please...
Situation:
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.
Intent:
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.
Context:
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.
Question:
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.
~Martin
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 \2.4.6.6\
Client error: '\2.4.6.6\' is not a version for project ??.
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.
{code}
--action runFromVersionList --project "TCN" --common "--action archiveVersion --file "list.csv" --project "@projectId@" --version "@versionId@""
{code}
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:
{code}
--action runFromCsv --file "list.csv" --common "--action archiveVersion"
{code}
Please make sure that your file is in CSV format and columns will be as shown below:
Thanks
Yoga
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.
Regards,
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
https://github.com/marketplace/actions/jira-release-archive-action
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.