Hello,
I have a little problem with my script.
I’m using the documentation of Jira, I want returns the details for an issue thanks to the method ‘get issue’. I’m using NodeJS. (https://developer.atlassian.com/cloud/jira/platform/rest/v3/?utm_source=%2Fcloud%2Fjira%2Fplatform%2Frest&utm_medium=302#api-api-3-issue-issueIdOrKey-get)
But I have this error : ( Response 403) “Failed to parse Connect Session Auth Token”, normally I have the permission for access but have always same error
I’m using my API token from Atlassian account but the same error persists…
When I put my url into the browser, I have many values that are displayed but programmaticaly side, the same error is display …
// This code sample uses the 'request' library:
// https://www.npmjs.com/package/request
var request = require('request');
var options = {
method: 'GET',
url: 'https://actility.atlassian.net/rest/api/3/issue/SCII-1',
auth: { bearer: '<***>' },
headers: {
'Accept': 'application/json'
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(
'Response: ' + response.statusCode + ' ' + response.statusMessage
);
console.log(body);
});
Thank you in advance for your help.