Not able to get the project details with project key using Rest API

Pandu Ranga March 2, 2015

Hi,

     JIRA Version: 6.3.15

  • We are retrieving the details from JIRA to other application using REST API. 
  • We are using basic authentication while making the request.
  • When i try to retrieve the project details from JIRA with project key using Rest URL(http://localhost:8080/domejira/rest/api/2/project/169) i am getting the following error.
    • Error:  {"errorMessages":["No project could be found with id '169'."],"errors":{}}
  • All other REST url's are working. Only this url is not working.
  • If i make a request using project id instead of project key. I am getting the project details.
  • Is it related to any configuration in JIRA side?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Andreas Ebert
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.
March 3, 2015

I'm I understanding you correctly that the key of your project is "169"?! If that is the case then I'm wondering how you even managed to set that as the project key, because all-number project keys are not allowed (anymore?) in JIRA. The REST resource interprets this as an id (because it's a number) and therefore does not find a project with that id.

I highly recommend to change the project key to a supported format.

 

TAGS
AUG Leaders

Atlassian Community Events