查询工作流信息
GET
https://open.teambition.com/api/taskflow/query该接口用于查询工作流的信息。
请求参数
Query 参数
taskflowId
string
必需
工作流 ID,通过 查询任务类型接口获取,任务类型的信息中包含相应的工作流 ID
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
返回码,200 表示成功
errorMessage
string
必需
调用失败时的错误信息
result
object
必需
taskflowId
string
工作流 ID
name
string
工作流名称
statuses
array [object {4}]
工作流中包含的状态
creatorId
string
创建人的用户 ID
created
string
项目创建时间
updated
string
最近一次更新时间
示例
{
"code": 200,
"errorMessage": "",
"result": {
"taskflowId": "5da45c9df401d767...",
"name": "任务默认工作流",
"statuses": [
{
"id": "5ee0c160890d3a06d103703d",
"name": "待处理",
"type": "start",
"pos": 1
},
{
"id": "5ee0c160890d3a06d103703e",
"name": "进行中",
"type": "inProgress",
"pos": 2
},
{
"id": "5ee0c160890d3a06d103703f",
"name": "已完成",
"type": "end",
"pos": 3
}
],
"creatorId": "5a28e2036176bbde...",
"created": "2020-01-03T10:00:00Z",
"updated": "2020-01-03T10:00:00Z"
}
}
最后修改时间: 3 年前