Unable to hit the JIRA cloud instance APIs

Pallavi Bhat October 11, 2015

HI, 

We are developing the plug-in connector for Atlassian JIRA and one of our client tools. We are doing some analysis about the JIRA cloud instance.

For this purpose, we have created a free trial account for cloud instance. But we are not able to access APIs.

 It would be great if we get to know how to activate the >> Accept remote API calls option with this trial account to solve the issue.

 

Thanks in advance,

Pallavi

2 answers

0 votes
Pallavi Bhat October 19, 2015

We have procure the licence of JIRA cloud instance,
Site Address: cloudjira.atlassian.net

But through Rest Client, i am not able to access the API's. Below are the details of request

URL: https://<cloud instance URL>/rest/api/auth/2/version/10006
authorization: base64 encoded form of <username:password>
contect-type: application/json

Response: Getting 

401 Unauthorized

Any pointers will be helpful. We need to start our work with cloud instance

Rajeev Kumar June 4, 2019

Hi Pallavi,

I am also facing same issue , After providing the authorization: base64 encoded form of <username:password> , I am still getting 

Response: Getting 401 Unauthorized

Can you tell me how it was rectified

0 votes
Abdoulaye Kindy Diallo
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.
October 11, 2015

Now, REST API is enabled by default. We used to enable it as in here: 

 https://confluence.atlassian.com/display/JIRACLOUD/Configuring+JIRA+Options#ConfiguringJIRAOptions-Options.

But with JIRA 7, the option is set to ON by default so there is no need to make any change. That's mentioned at JRA-44822

Further guideline: https://docs.atlassian.com/jira/REST/ondemand/

Sample test with the right details can be done through: https://<domain>.atlassian.net/rest/api/2/search?jql&fields=key

Pallavi Bhat October 12, 2015

Thanks Diallo for the Updates We are using Cloud Jira instance: JIRA v7.0.0-OD-08-001, but not getting "Accept remote API calls" option in JIRA Administrator >> System >> Edit Settings>> Options field All other options like Logout confirmation, Use gzip compression, External user management etc are available. Is this option ("Accept remote API calls") available with free trial (7 days) cloud instance? Any pointers will be halpful

Abdoulaye Kindy Diallo
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.
October 14, 2015

It seems the option is removed. But once again the REST API is by default ON/enabled.

Suggest an answer

Log in or Sign up to answer