I'm trying to use a REST API call to get a list of all versions in my project along with the count of all issues associated with each version. Looking at the documentation at https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-project-projectIdOrKey-versions-get you see two versions in the example response, one with associated issues enumerated and one without. But there's no documentation explaining how to get one or the other. The only query parameter, "expand=operations" doesn't provide this info.
Meanwhile, the similar API call "version" -- the paginated one -- DOES have expand=issuesstatus which provides what I'm looking for... just paginated.
I did try expand=issuesstatus with versions but no luck.
What am I missing here? How do I get the data in the second version in the example response?
Hi Alex,
Thank you for reaching out to Atlassian Community!
I saw that you created a ticket with our support related to the same question and they are already helping you, so to avoid any possible misunderstandings or miscommunication that may arise from discussing the same matter in two different platforms, let's focus on the ticket instead.
Once the ticket is resolved, feel free to share the resolution here to help other community members that may face the same issue.
Regards,
Angélica
Sure, makes sense.
I did get a "resolution" of sorts on this -- the documentation is incorrect.
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.
@garyst1981 the answer is that the documentation was incorrect and there is no way to get the second version of the data. Have they not fixed the documentation yet? It's been a year and a half...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In case anyone is curious, the documentation has still not been updated, for either v2 (current) or v3 (beta), and the "issuesstatus" expand option still does not work for either version of the /project/<project>/versions endpoint. We're quickly approaching 5 years.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.