Trouble Accessing JIRA Api

Manish Bhalodi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 27, 2021

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?

1 answer

1 accepted

0 votes
Answer accepted
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 6, 2021

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

Suggest an answer

Log in or Sign up to answer