【问题标题】:Zendesk API get tickets solved todayZendesk API 今天得到票解决
【发布时间】:2018-06-28 13:15:13
【问题描述】:

我想使用 Zendesk API https://developer.zendesk.com/rest_api/docs/core/ticket_metrics#json-format,但我不确定如何获得今天解决的票证、昨天解决的票证、本周解决的票证等指标。

这可以在 Zendesk API 中实现吗?

【问题讨论】:

    标签: rest api zendesk zendesk-api


    【解决方案1】:

    您可以使用以下方法获取此数据:

    GET /api/v2/ticket_metrics.json
    

    返回将包含solved_at 日期:

    {
      "id": 33,
      "ticket_id": 4343,
      "created_at": "2009-07-20T22:55:29Z",
      "updated_at": "2011-05-05T10:38:52Z",
      "group_stations": 7,
      "assignee_stations": 1,
      "reopens": 55,
      "replies": 322,
      "assignee_updated_at": "2011-05-06T10:38:52Z",
      "requester_updated_at": "2011-05-07T10:38:52Z",
      "status_updated_at": "2011-05-04T10:38:52Z",
      "initially_assigned_at": "2011-05-03T10:38:52Z",
      "assigned_at": "2011-05-05T10:38:52Z",
      "solved_at": "2011-05-09T10:38:52Z",
      "latest_comment_added_at": "2011-05-09T10:38:52Z",
      "reply_time_in_minutes": { "calendar": 2391, "business": 737 },
      "first_resolution_time_in_minutes": { "calendar": 2391, "business": 737 },
      "full_resolution_time_in_minutes": { "calendar": 2391, "business": 737 },
      "agent_wait_time_in_minutes": { "calendar": 2391, "business": 737 },
      "requester_wait_time_in_minutes": { "calendar": 2391, "business": 737 },
      "on_hold_time_in_minutes": { "calendar": 2290, "business": 637 }
    }
    

    更多内容请关注documentation here

    【讨论】:

      【解决方案2】:

      据我所知,没有一个基础广泛的端点来定义工单状态以及该状态何时发生。 Search Endpoint 将允许您定义截至目前的状态(当前已解决的票证)。增量工单事件端点将在事件发生时向您显示(工单状态更改为已解决),但不可搜索。大多数人将存储来自 Ticket Events 端点的数据,然后您可以使其可搜索。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2018-01-08
        • 2021-12-27
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多