Hi I am new to this community. I am looking to call the JIRA REST API. The problem is when I try make a connection following References it gives me an authentication error: 401. e.g. when I try to call an API as below
```
curl --request GET \ --url 'https://your-domain.atlassian.com/rest/agile/1.0/epic/none/issue' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
```
It fails to give response back to my request as
`curl: (6) Could not resolve host: keptn-sp.atlassian.com`
when I changed the url to `https://keptn-sp.atlassian.net/rest/agile/1.0/epic/none/issue`, I get as below
`{"message":"Client must be authenticated to access this resource.","status-code":401}`
just to be make sure - you are using Jira Server, correct? Then you can only having authentication method of OAuth or basic auth.
If you are using Cloud then only you will use Api Token.
Once you will create these authentication method then configure your credential into API to hit the call.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.