[ZBX-23761] Zabbix Jira webhook can't create tickets in JIRA Created: 2023 Nov 30  Updated: 2024 Jun 27  Resolved: 2024 Jan 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Templates (T)
Affects Version/s: 6.0.22
Fix Version/s: 6.0.26rc1, 6.4.11rc1, 7.0.0beta1, 7.0 (plan)

Type: Problem report Priority: Major
Reporter: Pavel Raska Assignee: Evgenii Gordymov
Resolution: Fixed Votes: 0
Labels: API, JIRA, Webhook
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File Log for ZBX.txt     PNG File image-2023-11-30-07-58-35-344.png     PNG File image-2023-11-30-08-04-05-034.png     PNG File image-2023-11-30-10-51-38-023.png     PNG File image-2024-01-04-09-24-26-239.png     PNG File image-2024-01-04-09-25-10-235.png     PNG File image-2024-01-04-09-26-34-231.png    
Issue Links:
Causes
Duplicate
Team: Team INT
Sprint: Sprint 107 (Dec 2023), S2401
Story Points: 1.5

 Description   

Good morning, 

I set JIRA, as obviously, used standarded webook from GIT for ZABBIX(https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/media/jira?at=release/6.0 )

But , when I tried create ticket to JIRA, so I had issue

Steps to reproduce:

  1. Jira version 9.4.9
  2. Media type for JIRA
  3. TEST of media, reproduction via trigger in problem

I found relative issue in Jira

https://community.atlassian.com/t5/Jira-Software-questions/Can-t-create-issue-quot-Environment-Environment-is-required-quot/qaq-p/1171802

It´s seems, that metedata doesnť exist.  So i tried bing, because, I couldn´t find relatives links.

I tried some changes and this is result:

 * 00:00:00.000 [Debug] createISSUE00:00:00.000 [Debug] {"customfield_13200":[{"value":"PROD"}],"customfield_20500":"","customfield_20501":"","customfield_20502":"","customfield_20504":"","customfield_20505":"","customfield_20506":"","customfield_20507":"","customfield_20508":"","customfield_20509":"","customfield_20510":""}00:00:00.000 [Debug] [ Jira Webhook ] Sending request: [https://jira.xxxx.com/rest/api/latest/issue/createmeta?expand=projects.issuetypes.fields&projectKeys=EOH&issuetypeNames=Incident%20ZBX]
 * 00:00:00.000 [Debug] [ Jira Webhook ] Sending request: [https://jira.unicorn.com/rest/api/latest/issue/createmeta?expand=projects.issuetypes.fields&projectKeys=EOH&issuetypeNames=Incident%20ZBX]
 * 00:00:00.156 [Debug] [ Jira Webhook ] Received response with status code 404 {"errorMessages":["Issue Does Not Exist"],"errors":{}}
 * 00:00:00.156 [Debug] [ Jira Webhook ] ERROR: Request failed with status code 404: ["Issue Does Not Exist"] Check debug log for more information. 

 



 Comments   
Comment by Richard Ostrochovský [ 2023 Nov 30 ]

Yea, documentation https://www.zabbix.com/integrations/jira has missing information about which versions of Jira are supported/tested. Since Jira 9.0, things can be different: https://confluence.atlassian.com/jiracore/jira-9-4-rest-api-change-log-1178876796.html

Comment by Pavel Raska [ 2024 Jan 04 ]

Hello, is there some progress, please?

Thanks for answer.

Comment by Evgenii Gordymov [ 2024 Jan 04 ]

Hello Pras,

The bug has been fixed and is currently undergoing internal code review. We will try to update the main branch as soon as possible.

Tested on Jira version 9.12.1.

 

Comment by Evgenii Gordymov [ 2024 Jan 04 ]

Fixed in:

Generated at Wed Jul 02 08:17:02 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.