Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Project Search API is not working

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
DPK J Community Leader Nov 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.

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

 

Thanks

Lax

DPK J Community Leader Jan 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
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