搜索工单
GET /apiv2/tickets/search.json
调用权限
admin
agent
请求参数
query: 查询关键词,模糊查询多个字段
status: 状态筛选条件
fieldvalue: 自定义字段条件
created_order: 搜索结果按创建时间排序,可选值:asc,desc (默认为desc)
请求示例
GET /apiv2/tickets/search.json?query=iphone6
GET /apiv2/tickets/search.json?status=open,solved
获取含有自定义字段值为12345的工单列表
GET /apiv2/tickets/search.json?fieldvalue=12345
返回示例
Status: 200 OK{ "tickets": [ { "id": 33, "status": "open", "title": "here is a bug", ... }, { "id": 34, "status": "closed", "title": "here is another bug", ... } ]}