Jira Cloud REST API - Get Project

Victor G September 16, 2019

Hi,

 

I've tried to retrieve a specific project via the REST API. In the documentation (https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-project-projectIdOrKey-get) it is stated that the response is a "Project" object. In my case, when I do the call I receive a list with a single project inside.

What is actually the correct response? Should I use the list for now? Does it change in a future version?

 

Thanks.

Best,

Victor

1 answer

1 accepted

0 votes
Answer accepted
DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 16, 2019

@Victor GYou are right that this API return array with single object in it.

You can go ahead by using Array. This is what I am getting, and I have code deployed using array on more than 100 sites.

Victor G September 19, 2019

This was also confirmed by Atlassian support. Hopefully they will update the documentation at some point...

Suggest an answer

Log in or Sign up to answer