I read posts & articles on the net that I can access JIRA API using username & API token as basic auth. I did the same thing but still, it is showing me errors like below.
We are using Jira v8.13.8. Might be hosted on the private data center.
404
{ "errorMessages": [ "Issue does not exist or you do not have permission to see it." ], "errors": {}}
I don't know our JIRA is not installed on Local or we are using Cloud, but we can access it over the internet.
Our JIRA URL is like "https://ourdomain.jira.com". I generated a token from https://id.atlassian.com/manage-profile/security/api-tokens. URL. using my organization's email id as a user.
Am I missing something?
Hi Manish,
If your Jira site is using a domain of either atlassian.net or jira.com then your site is an Atlassian Cloud one. Perhaps someday in the future Atlassian might offer customers the ability to host our Cloud services on their own domain, but today that is not possible. For any Atlassian Cloud site, you can then use the API tokens which you can create in https://id.atlassian.com/manage-profile/security/api-tokens
However because you see a version number of 8.13.8, this is a clear indication that you're using either Jira Server or Jira Data Center. Those API tokens you create on id.atlassian.com though will never be useable on a Jira Server/Data Center instance. Those tokens are only for use on Atlassian Cloud sites. To complicate things further, that version of Jira Server does not yet have REST API tokens which you can use for authentication. Starting with 8.14 and higher, Jira Server/Data Center started enabling personal access tokens. Which work in much the same way as the Cloud REST API tokens do.
For Jira Server, you can still use basic auth with a username/password as explained in https://developer.atlassian.com/server/jira/platform/basic-authentication/
Try that and let me know if that helps.
Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.