Good afternoon!
I am trying to integrate Zabbix with JIRA to automatically create tickets, but I am unable to do so.
My Zabbix version is 7.0, and I am using the default Zabbix webhook for official integration.
In JIRA, I created an API token to enable the integration.
The sending is working, but I receive an authentication error.
Below are the logs:
Media Type Test Log
00:00:00.000 [Debug] [Jira Service Desk Webhook] Sending request: https://00000000000-team.atlassian.net/rest/servicedeskapi/servicedesk/0000000/requesttype/0000000/field
( URL MODIFIED )
00:00:00.696 [Debug] [Jira Service Desk Webhook] Received response with status code 401 - Client must be authenticated to access this resource.
00:00:00.696 [Debug] [Jira Service Desk Webhook] Failed to parse response received from Jira
00:00:00.696 [Debug] [Jira Service Desk Webhook] ERROR: Request failed with status code 401. Check debug log for more information.
Hi!
How are you performing the authentication?
For Jira Cloud's REST API authenticaiton you need a token indeed. But you also need to provide the username.
It uses basic authentication:
Example header: "Authorization: Basic ZnJlZDpmcmVk"
From https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/
Supply an
Authorization
header with contentBasic
followed by the encoded string. For example, the stringfred:fred
encodes toZnJlZDpmcmVk
in base64,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.