Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve the contents of fixVersion using API?

Ben Radlinski
Contributor
August 3, 2023

I am still getting up to speed with APIs, so bear with me.

I'm attempting to query the "fixVersion" field in Jira Project using API in order to update the same field in another Application (Workfront). Is this possible? 

Assuming all I need to do is query the fixVersion field in the context of a single project and return the entire list of versions for that project, but I'm not sure how to construct the query

http://jira.mycompany.com/api/2/search?jql=project=LEG&fixVersion  ?

1 answer

1 accepted

1 vote
Answer accepted
Kai Becker
Community Champion
August 3, 2023

Hey @Ben Radlinski 

thanks for your question.

 

There is a special REST API endpoint for this:

https://docs.atlassian.com/software/jira/docs/api/REST/9.10.0/#api/2/project-getProjectVersions

Ben Radlinski
Contributor
August 3, 2023

We're on Datacenter on prem, version 8.20.12, so I'm guessing this is probably a new feature? I tried I couple versions of the above using our url, but no luck.

But this is very helpful, I'll do some more digging.

Kai Becker
Community Champion
August 3, 2023

This should already be available in your version.

What is the response you are getting? 

I forgot to mention, that this endpoint will report all versions, not only the ones used in the fixVersion field 😕

Ben Radlinski
Contributor
August 3, 2023

When I try it like this:
https://jira.it.company.com/rest/api/REST/9.10.0/#api/2/project-getProjectVersions

I get a "you've found a dead link" page (I'm using Postman to test)

just realized that was the doc link and not an example (it's been a long day).

When I try it like this:

https://jira.it.company.com/rest/api/2/project-getProjectVersions

I get a 404.

That's actually the information we're looking for (all of the release versions)

Ben Radlinski
Contributor
August 3, 2023

yes!  Thank you. Huge help.

this works:  https://jira.it.company.com/rest/api/2/project/ID/versions

I appreciate the help and explanation.

Like Kai Becker likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.20.12
TAGS
AUG Leaders

Atlassian Community Events