Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-23761

Zabbix Jira webhook can't create tickets in JIRA

XMLWordPrintable

    • Sprint 107 (Dec 2023), S2401
    • 1.5

      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. 

       

        1. image-2023-11-30-07-58-35-344.png
          61 kB
          Pavel Raska
        2. image-2023-11-30-08-04-05-034.png
          102 kB
          Pavel Raska
        3. image-2023-11-30-10-51-38-023.png
          19 kB
          Richard Ostrochovský
        4. image-2024-01-04-09-24-26-239.png
          105 kB
          Evgenii Gordymov
        5. image-2024-01-04-09-25-10-235.png
          84 kB
          Evgenii Gordymov
        6. image-2024-01-04-09-26-34-231.png
          76 kB
          Evgenii Gordymov
        7. Log for ZBX.txt
          1 kB
          Pavel Raska

            egordymov Evgenii Gordymov
            Pras Pavel Raska
            Team INT
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: