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