I would like to create tickets in an on-premise jira server. Unfortunately, no matter what i try, i get an error.
I followed the tutorial, telling me i should use curl with -u to pass user/pass information. Thats what i did:
curl -u jira.automation:78B...4RF -X GET -H "Content-Type: application/json" 'https://servicedesk.myhost.ch:8081/rest/api/2/issue/createmeta'
that returns some html, where it states: <h1>Unauthorized (401)</h1>
so i thought i try it with a token (changed the username for that)
curl -u oliver.xxx:NTk5MzY3xxxFVEbAm1 -X GET -H "Content-Type: application/json" 'https://servicedesk.myhost.ch:8081/rest/api/2/issue/createmeta'
That returned <p>Basic Authentication Failure - Reason : AUTHENTICATION_DENIED</p>
So i am wondering if this is a server thingen? Do i have to enable basic auth?