How do you retrieve a list of projects from the REST API?

Deleted user June 23, 2012

I'm trying to pull down a list of projects using the JIRA 5.0.1 REST API. I've tried two resources, both yielding the same results:

/rest/api/2/project

http://docs.atlassian.com/jira/REST/latest/#id160865

/rest/api/2/issue/createmeta

http://docs.atlassian.com/jira/REST/latest/#id162533

When I GET from those urls using my correct credentials, I get a 200 response with json content, but always with zero projects. I have tried with two different jira accounts and get the same result without projects.

What am I doing wrong here?

2 answers

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 23, 2012

How are you providing the credentials? What happens when you try it in browser?

0 votes
Deleted user June 23, 2012

Figured it out. I was using the wrong jira url (http instead of https).

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events