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

lastchange sort doesn't work with trigger.get method

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.2.2rc1, 2.3.0
    • Component/s: API (A)
    • Labels:

      Description

      lastchange sort doesn't work with trigger.get method. There are no difference with "ASC" and "DESC" on sortorder parameter.

      • trigger.get with parameter "sortfield":"lastchange" and "sortorder:ASC"

      {"jsonrpc":"2.0","result":[

      {"triggerid":"22328","state":"0","lastchange":"1389679853","value_flag":"0"}

      ,

      {"triggerid":"20354","state":"0","lastchange":"1389679853","value_flag":"0"}

      ],"id":1}

      • trigger.get with parameter "sortfield":"lastchange" and "sortorder:DESC"

      {"jsonrpc":"2.0","result":[

      {"triggerid":"22328","state":"0","lastchange":"1389679853","value_flag":"0"}

      ,

      {"triggerid":"20354","state":"0","lastchange":"1389679853","value_flag":"0"}

      ],"id":1}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kodai Kodai Terashima
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: