The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

get the list of projects Jira oauth2.0

Lokeshwar Obuli
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 22, 2022

Hi,

 

    I am trying to get the list of all projects from the following URL 

https://api.atlassian.com/ex/jira/<cloud-id>/rest/api/3/project/search

according to the following URL https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-search-get


I also have the following scopes requested while setting up the Oauth

"%20read%3Aboard-scope%3Ajira-software",
"%20read%3Aboard-scope.admin%3Ajira-software",
"%20read%3Aissue-details%3Ajira",
"%20read%3Aissue%3Ajira-software",
"%20read%3Ajql%3Ajira",
"%20read%3Aproject%3Ajira",
"%20read%3Asprint%3Ajira-software"


Still I always get the following reponse, irrespective of where I hit the API from 

{
"self": "https://api.atlassian.com/ex/jira/<cloud-id>/rest/api/3/project/search?maxResults=50&startAt=0",
"maxResults": 50,
"startAt": 0,
"total": 0,
"isLast": true,
"values": []
}

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Lokeshwar Obuli
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 22, 2022

I can also see 3 projects under me when I log into my Jira account

TAGS
AUG Leaders

Atlassian Community Events