I feel like I've tried every possible format to enable a get request from JIRA with CURL and I continue to get a 401 error. I've triple checked my jira email to ensure it is correct. I'm using the api token i generated in jira. This is my format below. Is there any other reason that this request might fail? If I paste the url into my web browser I get the appropriate response from the issue (because cookie retrieval).
Any help would be greatly appreciated. I've been fighting this for hours.
Thank You!
curl --request GET \--url 'https://jira.<company_name>.com/rest/api/latest/issue/<issue_key>' \--user 'first.last@<company_name>.com:<api_token>' \--header 'Accept: application/json'
It looks like you're new here. Sign in or register to get started.