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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events