Hello all,
I am trying to make some REST requests for my Jira Cloud instance and it doesn't seem to be working. Here are the steps I have taken:
- Created an API token
- Created the base64-encoded basic authentication header value (in my case, I used something like `echo username:api_token | base64` and stripped the last 4 characters to match the example given here.
- Make a curl request like shown below:
curl -D- -H 'Content-Type: application/json' \
-H 'Authorization: Basic [base64 value here]' \
-X GET \
https://subdomain.atlassian.net/rest/api/2/issue/[issue key]
The response I get back appears to be an HTML unauthorized request page that has a link back to the Jira home page.
Is there some sort of authorization I need to do outside of creating an API key? The user account that I'm using has access to the project and issue I'm trying to fetch.