I am trying to create an issue via the Jira REST API as per this document. The localhost addresses do not seem to work, but I can access the links via
https://mysite.atlassian.net/rest/api/latest/etc.
I can access all addresses (/rest/api/latest/issue/createmeta/, /rest/api/latest/project, etc) that they give in the article except
https://mysite.atlassian.net/rest/api/latest/issue/
which is the one needed for the curl command to create a new issue. When I go to that url, it returns the following error: "This page isn’t working. If the problem continues, contact the site owner. HTTP ERROR 405." Is this documentation just outdated -- could I use a different url instead for the curl command? Or is it that I need to fix something with this url? Thanks!
The document you referenced is for the REST API for self-hosted Jira (Jira Server or Jira Data Center). Given that you say using endpoints like
https://mysite.atlassian.net
...work, then you are actually using Jira Cloud and need to reference the API documents for it. Here is a link to documentation for v3 of that API
https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/
In the examples I've viewed in that document they include an explicit version number within the endpoint rather than using "latest". Perhaps "latest" works generally unless the endpoint has changed from one version to the next, and then you need to use an explicit version.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.