Hi there.
I was able to get the OAuth's access token and now I want to retrieve an issue from my project. I'm sending the access token as a header as follow:
curl --request GET --header "Authorization: OAuth <access_token>" --url "https://example.atlassian.net/rest/api/2/issue/EXA-1"
But I'm getting the following error: {"errorMessages":["Issue does not exist or you do not have permission to see it."],"errors":{}}.
Am I missing any header o any other data?
I believe the header should be like:
--header "Authorization: Bearer <access_token>"
and the URL should be like
https://api.atlassian.com/ex/jira/{cloudid}/rest/api/2/issue/EXA-1
The cloudid should be obtained when you've authenticated your request through the /oauth/token/accessible-resources endpoint.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.