Error-Oops, you've found a dead link. - JIRA

Mrunali Gaikwad September 23, 2021

I am trying to hit the API http://localhost:8080/rest/issue to create an issue

and receiving the below error, i restarted by JIRA server

Also i created a new session ID to pass into the header

 

Request Body is created only with the mandatory fields.

 

{
"fields": {
"project":
{
"key": "RSA"
},
"summary": "something's wrong",
"description": "description",
"issuetype": {
"name": "Bug"
}
}
}

 

<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Oops, you&#39;ve found a dead link. - JIRA</title>
<script type="text/javascript">
contextPath = "";
</script>
<link type='text/css' rel='stylesheet' href='/static-assets/metal-all.css' media='all'>
<script src='/static-assets/jquery-min.js'></script>
<script src='/static-assets/metal-all.js'></script>
<meta name="decorator" content="none" />
</head>

<body class=" error-page error404">
<script type="text/javascript">
document.body.className += " js-enabled";
</script>
<div id="page">
<header id="header" role="banner" aria-label="Site"></header>
<div id="content">
<div class="aui-page-panel">
<div class="aui-page-panel-inner">
<main role="main" id="main" class="aui-page-panel-content lowerContent">
<div id="error-state"><span class="error-type"></span>
<h1>Oops, you&#39;ve found a dead link.</h1>
<ul>
<li>Go back to the <a href="javascript&colon;window.history.back()">previous page</a></li>
<li>Go to the <a href="/secure/MyJiraHome.jspa">Home Page</a></li>
</ul>
</div>
</main>
</div>
</div>
</div>
<footer id="footer" role="contentinfo">
<section class="footer-body">
<ul class="atlassian-footer">
<li>
Atlassian Jira <a class="seo-link" rel="nofollow"
href="https://www.atlassian.com/software/jira">Project Management Software</a>
</li>
<li>
<a id="about-link" rel="nofollow" href="/secure/AboutPage.jspa/secure/AboutPage.jspa">About
Jira</a>
</li>
<li>
<a id="footer-report-problem-link" rel="nofollow" href="/secure/CreateIssue!default.jspa">Report
a problem</a>
</li>
</ul>
<p class="atlassian-footer">
<span class="licensemessagered">
Powered by a free Atlassian <a rel='nofollow' href='http://www.atlassian.com/software/jira'>Jira evaluation license</a>. Please consider <a rel='nofollow' href='/plugins/servlet/applications/versions-licenses'>purchasing it</a> today.

</span>
</p>
<div id="footer-logo"><a href="http://www.atlassian.com/" rel="nofollow">Atlassian</a></div>
</section>
</footer>
</div>
</body>

</html>

2 answers

1 accepted

1 vote
Answer accepted
Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 23, 2021

Hi @Mrunali Gaikwad welcome on the community, what version of Jira do you use?

In older versions you need to use

  • rest/api/2/issue
Kishan Sharma
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 24, 2021

Welcome to the Atlassian Community @Mrunali Gaikwad

Martin is correct in that you need to use /rest/api/2/issue on jira server to create an issue.

Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 24, 2021

It is interesting, Atlassian probably reworked REST API, in last version the documentation works with /rest/issue, as @Mrunali Gaikwad mentioned. There is a difference :)

Mrunali Gaikwad September 24, 2021

I am using 8.19.1

and the site gives me the resource as below

 

When i used /rest/api/2/issue it worked but the one provided in the documentation does not.

Is that an incorrect info on the official site ?

https://docs.atlassian.com/software/jira/docs/api/REST/8.19.1/#issue-createIssue

Screen Shot 2021-09-24 at 12.38.59 PM.png

Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 24, 2021

It looks like the documentation is not correct... I will mark this question with label so Atlassian team can check it.

Can you work with /rest/api/2/issue 

Mrunali Gaikwad September 24, 2021

yes, i am working with the same

 

I am referring to this site-https://docs.atlassian.com/software/jira/docs/api/REST/8.19.1/

Also, i see the same issue with delete issue which has below resource

DELETE /rest/issue/{issueIdOrKey}

 

And the AddComment also failed with same error using resource

POST /rest/issue/{issueIdOrKey}/comment

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 27, 2021

Hi,

Sorry for the inconvenience, it does appear that the current documentation has different endpoint names than the previous versions.  Also these new names don't seem to be working for me either.  I have created a bug for this over with our documentation team in https://jira.atlassian.com/browse/JRASERVER-72844

I suspect that this is something the documentation team will need to investigate further to resolve this.  In the meantime, I recommend trying to follow the 8.18 documentation over in https://docs.atlassian.com/software/jira/docs/api/REST/8.18.0/ as this still appears to be working correctly for me when using the 8.19 version of Jira Server/Data Center.

Cheers,

Andy

Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 27, 2021

Thank you @Andy Heinzer 🙂

Suggest an answer

Log in or Sign up to answer