获取执行任务列表 分享链接

作者:王怡栋 最后编辑:宋辰轩 于 2024-03-26 10:44:35 浏览量:9641
GET
/executions/:id/tasks

获取执行任务列表

请求头

名称 类型 必填 描述
Token String 认证凭证Token

请求响应

名称 类型 必填 描述
page int 当前页数
total int 任务总数
limit int 每页任务数
tasks array 任务列表
  ∟  id int 任务ID
  ∟  project int 所属项目
  ∟  execution int 所属执行
  ∟  module int 所属模块
  ∟  story int 关联需求
  ∟  name string 任务名称
  ∟  type string 任务类型(design 设计 | devel 开发 | request 需求 | test 测试 | study 研究 | discuss 讨论 | ui 界面 | affair 事务 | misc 其他)
  ∟  pri int 优先级
  ∟  estimate float 预计工时
  ∟  left float 剩余工时
  ∟  deadline date 截止日期
  ∟  consumed float 消耗工时
  ∟  status string 状态(wait 未开始 | doing 进行中 | done 已完成 | closed 已关闭 | cancel 已取消)
  ∟  desc string 任务详情
  ∟  openedBy 创建人
  ∟  openedDate datetime 创建时间
  ∟  assignedTo 指派给
  ∟  estStarted date 预计开始日期
  ∟  realStarted datetime 实际开始时间
  ∟  finishedBy 由谁完成
  ∟  finishedDate datetime 完成时间
  ∟  closedBy 由谁关闭
  ∟  closedDate datetime 关闭时间
  ∟  mailto array 抄送给

响应示例

{
    "page": 1,
    "total": 1,
    "limit": 100,
    "tasks": [
        {
            "id": 18,
            "project": 12,
            "parent": 0,
            "execution": 13,
            "module": 0,
            "design": 0,
            "story": 0,
            "storyVersion": 1,
            "designVersion": 0,
            "fromBug": 0,
            "name": "task1",
            "type": "devel",
            "pri": 3,
            "estimate": 0,
            "consumed": 2,
            "left": 0,
            "deadline": null,
            "status": "done",
            "subStatus": "",
            "color": "",
            "mailto": [],
            "desc": "",
            "version": 1,
            "openedBy": {
                "id": 1,
                "account": "admin",
                "avatar": "",
                "realname": "管理员"
            },
            "openedDate": "2021-11-29T02:33:47Z",
            "assignedTo": {
                "id": 1,
                "account": "admin",
                "avatar": "",
                "realname": "管理员"
            },
            "assignedDate": "2021-11-29T02:52:25Z",
            "estStarted": "0000-00-00",
            "realStarted": "2021-11-29T02:50:00Z",
            "finishedBy": {
                "id": 1,
                "account": "admin",
                "avatar": "",
                "realname": "管理员"
            },
            "finishedDate": "2021-11-29T02:52:17Z",
            "finishedList": "",
            "canceledBy": null,
            "canceledDate": null,
            "closedBy": null,
            "closedDate": null,
            "planDuration": 0,
            "realDuration": 0,
            "closedReason": "",
            "lastEditedBy": {
                "id": 1,
                "account": "admin",
                "avatar": "",
                "realname": "管理员"
            },
            "lastEditedDate": "2021-11-29T02:52:25Z",
            "activatedDate": "0000-00-00",
            "deleted": false,
            "storyID": null,
            "storyTitle": null,
            "product": null,
            "branch": null,
            "latestStoryVersion": null,
            "storyStatus": null,
            "assignedToRealName": "管理员",
            "needConfirm": false,
            "progress": 100
        }
    ]
}