It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
As the title says. I want to get all versions of all projects in JIRA.
How can I do that?
Thanks very much!
Hi Xinan,
You can use REST API to get list of all versions in the projects
/rest/api/2/project/{projectIdOrKey}/versions
For more info you can refer - https://docs.atlassian.com/jira/REST/latest/#d2e2079
Taha
This is another thing that is a lot easier to do via mysql (if you have access to the database):
mysql> select DISTINCT vname from projectversion;
+----------------------------------------------------------------------------+
| vname |
+----------------------------------------------------------------------------+
| Release 1.0.2 |
| Release 1.0.3 |
...
...
(JIRA 6.2.1)
Using the rest API this is your best bet:
Use /rest/api/2/project
to get all accessible projects.
Extract the project keys, and loop over every project key.
Use /rest/api/
2
/project/{projectIdOrKey}/versions
to get all versions for a specific project.
Accumulate all of the results.
Use JIRA Command Line Interface (CLI) and get a CSV file with them all listed:
--action runFromProjectList --common "--action getVersionList --project @project@ --file versionList.csv --append --outputFormat 999"
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.
Read moreHey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...
Connect with like-minded Atlassian users at free events near you!
Find a groupConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.
Start an AUGYou're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.