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

Jira Cloud REST API - Get Project

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
DPK_J Community Leader Sep 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.

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
TAGS

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