It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

In C#, how do I get a list of all of the Issues in a given version?

Mark H Apr 20, 2016

I've been trying to find the clean way to get all of the Issues in a given version from a C# utility we have. I've tried using the Atlassian SDK, as well as the REST API directly. The only successful way I have found, is to get every Issue in a project, then filter it on the client for the version. This is very inefficient. It seems like there should be a way to get only the issues in a given version through the API. 

The REST API, documented here,, lists many options for the version related calls. There is an option "GET /rest/api/2/version/{id}/relatedIssueCounts" described as "get version releated issues. Alas, it only seems to yield counts (statistical information). I don't get the Issue IDs, just the number of Issues. 

I have also tried using jql. I have tried the following, along with many permutations:

curl -D- -u username:passwd -X GET -H "Content-Type: application/json" http://jira/rest/api/2/search?jql=fixVersions=10704

note: not C#, but I am using curl to find the right URL.

With the above, I get the following error:
{"errorMessages":["Field 'fixVersions' does not exist or you do not have permission to view it."],"errors":{}} 


What is the right way to do this? Again, I don't want to pull down every single issue in the project, and then filter locally. This makes the calling program too slow. There has got to be an easier way. 


1 answer

0 votes
Vasiliy Zverev Apr 29, 2016

There is not such field fixVersions, only fixVersion.

change jql=fixVersions=10704 to jql=fixVersion=10704

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase

Friday Fun: What's your best vacation planning hack?

Let's face it, work can be challenging but fulfilling, especially when you enjoy the challenges thrown at you.  However for me, nothing compares to going on vacation (or holiday as some of you m...

590 views 29 4
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you