Hi ,
I am using
https://mydomain.atlassian.net/rest/api/2/search?jql=project = 'project' AND issuetype = 'story'
query to retrieve data from JIRA.
My node js code :
const requestObj = {
headers: { 'content-type': 'application/json' },
url: "https://mydomain.atlassian.net/rest/api/2/search?jql=project = 'myproject' AND component = 'mycomponeny' and issuetype = 'story'",
auth: { Basic: ('myid@project.com:vtrhtututitittitfterew').toString('base64') },
Accept: 'application/json'
};
I am getting error "auth mechanism is not defined"
I have also tried
auth: { bearer: ('myid@mydomain.atlassian.net:vtrhtututitittitfterew').toString('base64') },
auth: { Basic: ('myid@mydomain.atlassian.net:vtrhtututitittitfterew').toString('base64') },
But I am still getting error "auth mechanism is not defined"
your help is highly appreciated.
Regards,
Abhay