Why do I keep getting a 404 "Oops, you've found a dead link." with JIRA 7.4.3 REST API?

Nadia Pugglesworth September 1, 2017

I'm using JIRA Server 7.4.3 on a localhost on port 9000 with the default embedded database configured.  I can access JIRA dashboard and create tickets, etc. with http://localhost:9000.

However, when I try to access the JIRA REST API to examine a ticket I created with an ID of 10000 using the URL http://localhost:9000/jira/rest/api/2/10000, I get the 404 "Oops, you've found a dead link." error.  It seems I cannot access the REST APIs no matter what I do.

I've tried searching for days whether there are any configurations I need to set but from everything I could find, the REST APIs are configured to work by default in JIRA 7.

Can someone let me know how I can enable the JIRA REST APIs in my configuration as described above?  Thank you.

2 answers

2 votes
Gaston Valente
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.
September 1, 2017

Nadia,

I think that the correct URL for the service you need is

/rest/api/2/issue/{issueIdOrKey}

In your case

/rest/api/2/issue/10000

Nadia Pugglesworth September 3, 2017

I can't believe I overlooked that!  Thank you very much for pointing it out.  When I entered the following URL into my browser:

    http://localhost:9000/rest/api/2/issue/10000

I got what I expected as a response:

{"expand":.....

 

Thank you very  much for pointing out my error!

Gaston Valente
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.
September 3, 2017

Great!

Nadia Pugglesworth September 4, 2017

Gaston, may I ask one more question regarding the Atlassian SDK for plugin development?  I downloaded the latest version from the Atlassian download site yesterday.  I installed it using all the defaults including port 2990 and it appeared to install without issue.  Running atlas-version in a Windows Powershell window displays the appropriate information.  How can I test it in a browser to ensure it installed properly?  When I provide the URL, http://localhost:2990/jira, I get a "Can't reach this page" error from the browser.  I'm hoping I've overlooked something that's as simple as the previous question I had. 

One of the many joys of having ADHD is that I have grand visions that are quite creative yet fail miserably in practice because of lack of attention to details!  :)

Thanks again for your help on the previous question!  Looking forward to your response.

Michael_Class September 7, 2017

Never mind!  I finally found the answer....I needed to simply run a standalone version of JIRA first with the following command:

atlas-run-standalone --product jira

That seemed to do the trick.

Marking this issue as solved.  Thanks again!

0 votes
Michael_Class September 7, 2017

Solved

jaijaish98 November 5, 2019

How?

Russell_Catchpole February 19, 2020

That solved my problem too!

I am new to Jira and using HTTP requests programatically. I was following the instructions at https://developer.atlassian.com/server/jira/platform/rest-apis/

which had 'jira' in the HTTP request, so that's what I copied & pasted.

Thanks goodness Google found this page!

Suggest an answer

Log in or Sign up to answer