# GET /rest/api/latest/project/{projectIdOrKey}/version returns nothing in values;\[\]

**URL:** <https://community.developer.atlassian.com/t/get-rest-api-latest-project-projectidorkey-version-returns-nothing-in-values/13345>\
**Category:** Everything Else\
**Created:** [January 10, 2018, 10:03pm UTC](https://community.developer.atlassian.com/t/get-rest-api-latest-project-projectidorkey-version-returns-nothing-in-values/13345 "2018-01-10T22:03:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jajaffey](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@jajaffey](https://community.developer.atlassian.com/u/jajaffey)\
**Post date:** [January 10, 2018, 10:03pm UTC](https://community.developer.atlassian.com/t/get-rest-api-latest-project-projectidorkey-version-returns-nothing-in-values/13345/1 "2018-01-10T22:03:56Z")

</div>

I am trying to get the versionid value using the rest api, and for the resource I use:  
**requesttest.Resource = “/rest/api/latest/project/14411/version”;**  
where 14411 is a valid project id.

In the response only the following is returned:

**{“self”:“[https://tst-jira.th.gov.bc.ca/rest/api/2/project/PUP/version?maxResults=50&startAt=0",“maxResults”:50,“startAt”:0,“total”:0,“isLast”:true,"values](https://tst-jira.th.gov.bc.ca/rest/api/2/project/PUP/version?maxResults=50&startAt=0%22,%22maxResults%22:50,%22startAt%22:0,%22total%22:0,%22isLast%22:true,%22values)”:[]}**

How can I find out the versionID value which I underst and should be returned in the values section (as shown below copies from the api documentation).

“values”: [  
{  
“self”: “[http://www.example.com/jira/rest/api/2/version/10000](http://www.example.com/jira/rest/api/2/version/10000)”,  
“id”: “10000”,  
“description”: “An excellent version”,  
“name”: “New Version 1”,  
“archived”: false,  
“released”: true,  
“releaseDate”: “2010-07-06”,  
“overdue”: true,  
“userReleaseDate”: “6/Jul/2010”,  
“projectId”: 10000  
},

---

<div class="post-metadata">

**Author:** ![acalantog](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/acalantog/32/37988_2.png) [@acalantog](https://community.developer.atlassian.com/u/acalantog)\
**Post date:** [January 11, 2018, 7:03am UTC](https://community.developer.atlassian.com/t/get-rest-api-latest-project-projectidorkey-version-returns-nothing-in-values/13345/2 "2018-01-11T07:03:14Z")

</div>

Hi @jajaffey,

Could you confirm that you have existing versions in your project? Refer to: [Managing Versions](https://confluence.atlassian.com/adminjiracloud/managing-versions-776636296.html) doc.

Cheers,  
Anne Calantog
