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

API: Is impossible to create a dashboard if one of the several widgets does not have a field name

    Details

    • Team:
      Team B
    • Sprint:
      Sprint 15
    • Story Points:
      0.25

      Description

      Is impossible to create a dashboard if one of the several widgets does not have a field name, and for rest has been given. Example:

      "method": "dashboard.create",
          "params": {
              "name": "Widgets - ctreate dashboard with widgets",
              "widgets": [
                  {
                      "type": "problems",
                      "name": "widget Problems",
                      "x": 0,
                      "y": 0,
                      "width": 6,
                      "height": 5,
                      "fields": []
                  },
                  {
                      "type": "url",                    
                      "x": "6",
                      "y": "0",
                      "width": "6",
                      "height": "5",
                      "fields": []
                  }
              ]        
          },

      I get error:

      "error": {
              "code": -32500,
              "message": "Application error.",
              "data": "SQL statement execution has failed \"INSERT INTO widget (dashboardid,type,name,x,y,width,height,widgetid) VALUES ('57','problems','widget Problems','0','0','6','5','432'),('57','url','6','0','6','5','','433')\"."
          },

        Attachments

          Activity

            People

            • Assignee:
              sasha Alexander Vladishev
              Reporter:
              Tatsiana Malykh Tatsiana Malykh (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: