I have an URL which is resulting in JSON output when I run it in browser, while being logged in in JIRA.
But below mentioned curl command is returning "Unauthorized".
Is there some special access needed to be able to do basic authentication in Jira with my username and password.
curl -u username:password -X GET -H "Content-Type: application/json" https://xyz.atlassian.net/rest/api/latest/search?jql=project=DT
Hello Shubham,
I think this my be related to the authorization method you are using.
There were some recent changes to the user authorization methods fo Jira Cloud API calls relating to GDPR, and instead of using username:password for the authentications you will want to pass in a Auth token using basic authentication with an Atlassian account email address and API token
Details on the token is described in the following document:
Regards,
Earl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.