工单事件列表

GET /apiv2/tickets/{ticket_id}/events.json

created_order:排序规则,可选值:asc,desc (默认为 desc)

调用权限

agents

curl 示例
curl https://{subdomain}.kf5.com/apiv2/tickets/{ticket_id}/events.json \
 -v -u {email_address}:{password}
返回示例
{
    "ticket_events": [
        {
            "id": 77526629,
            "ticket_id": 1127,
            "ip": "110.184.34.228",
            "client": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.36",
            "created_at": "2017-11-13 16:41:46",
            "user_id": 23491934,
            "user": {
                "id": 23491934,
                "username": "agent01@163.com",
                "phone": "",
                "name": "客服01",
                "role": "agent",
                "status": "active"
            },
            "comment_id": null,
            "comment": null,
            "rule_id": null,
            "rule_title": null,
            "mail_id": null,
            "mail": null,
            "ticket_event_infos": [
                {
                    "id": 196016149,
                    "field": "group_id",
                    "field_title": "受理客服组",
                    "old": null,
                    "new": "1003595",
                    "users": [],
                    "groups": [
                        {
                            "id": 1003595,
                            "name": "测试组",
                            "status": "active"
                        }
                    ],
                    "rule_id": null,
                    "rule_title": null
                },
                {
                    "id": 196016153,
                    "field": "send_email",
                    "field_title": "发送邮件",
                    "old": null,
                    "new": "28787932",
                    "users": [
                        {
                            "id": 28787932,
                            "username": "enduser01@qq.com",
                            "phone": "",
                            "name": "enduser01",
                            "role": "end_user",
                            "status": "active"
                        }
                    ],
                    "groups": [],
                    "rule_id": "1025178",
                    "rule_title": "触发器任务: 提醒工单发起人工单有更新"
                }
            ]
        },
        ....    ]}