Hi all
Since Jira changed the authentication type from Basic to Bearer token, I am unable to access it properly
And a quick test with bearer token in header as
curl -s -X GET -H "Content-Type: application/json" -H "Authorization: Bearer AbC12EdEtc." -v https://[example].atlassian.net/rest/api/2/issue/TWS-4
returns error as
{"errorMessages":["Issue does not exist or you do not have permission to see it."],"errors":{}}%
but test with –user as below
curl -s -X GET -H "Content-Type: application/json" "https://[example].atlassian.net/rest/api/2/issue/TWS-4 " --user info@myemail.com:AbC12EdEtc.
returns success with details of the issue.
I really do not understand why the first one is not working because that is how to programmatically code it in spring resttemplate. I fail to find a way to code the latter one in my java code.
Can you help me with some ideas?