Project Search API is not working

Lax November 22, 2019

Hello All,

I am trying to retrieve the projects list for my organization using JIRA Api. I have created API token. We are using JIRA Cloud. 

Following are the details:

URLhttps://<OrgName>.atlassian.net/rest/api/3/project/search

Response:200 undefined
{"self":"https://<OrgName>.atlassian.net/rest/api/3/project/search?maxResults=50&startAt=0","maxResults":50,"startAt":0,"total":0,"isLast":true,"values":[]}

When I try project with key 'SES'

URL: https://<OrgName>.atlassian.net/rest/api/3/project/SES

Response:404 undefined
{"errorMessages":["No project could be found with key 'SES'."],"errors":{}}

 

Can someone help me what am I missing?

 

Thanks

Lax

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.
November 22, 2019

@LaxFirst and foremost,

  • The API response looks fine,
  • that means way you are accessing API is also good.

Now, Only thing you need to validate is,

  • User on who's behalf you are accessing API has permission to view list of project (and on project with key SES)
  • You can easily validate that by logging into your Jira using same user.
Lax November 22, 2019

@DPKJ  Thanks for replying. I was using the API Key name instead of my login username. 

 

Thanks

Lax

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.
January 12, 2020

@Laxif above answer have helped you, can you mark it as accepted to help others.

Suggest an answer

Log in or Sign up to answer