开始任务 分享链接

作者:宋辰轩 最后编辑:宋辰轩 于 2024-04-07 13:36:34 浏览量:3030
POST
/tasks/:id/start

开始任务

请求头

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

请求体

名称 类型 必填 描述
assignedTo string 指派给
realStarted date 实际开始
consumed int 总计消耗
left int 预计剩余
comment string 备注

请求示例

{
    "assignedTo":"test",
    "realStarted":"2022-12-02 11:04:59",
    "consumed":2,
    "left":2,
    "comment":"开始任务"
} 

请求响应

名称 类型 必填 描述
id int 任务ID
project int 所属任务
parent int 父任务
execution int 所属执行
module int 所属模块
story int 关联需求
fromBug int 来源于Bug
name string 任务名称
type string 任务类型(design 设计 | devel 开发 | request 需求 | test 测试 | study 研究 | discuss 讨论 | ui 界面 | affair 事务 | misc 其他)
pri int 优先级
estimate float 预计工时
consumed float 消耗工时
left float 剩余工时
deadline date 预计结束日期
status string 状态(wait 未开始 | doing 进行中 | done 已完成 | closed 已关闭 | cancel 已取消)
desc string 任务描述
openedBy 创建人
openedDate datetime 创建时间
assignedTo 指派给
assignedDate datetime 指派时间
estStarted date 预计开始日期
realStarted datetime 实际开始时间
finishedBy string 由谁完成
finishedDate datetime 完成时间
closedBy 由谁关闭
closedDate datetime 关闭时间
team array 团队,应用于多人任务

响应示例

{
    "id": 2,
    "project": 1,
    "parent": 0,
    "execution": 2,
    "module": 0,
    "design": 0,
    "story": 0,
    "storyVersion": 1,
    "designVersion": 0,
    "fromBug": 0,
    "feedback": 0,
    "fromIssue": 0,
    "name": "testtt",
    "type": "devel",
    "mode": "",
    "pri": 0,
    "estimate": 0,
    "consumed": 2,
    "left": 2,
    "deadline": "2022-12-31",
    "status": "doing",
    "subStatus": "",
    "color": "",
    "mailto": null,
    "desc": "",
    "version": 1,
    "openedBy": "admin",
    "openedDate": "2022-12-02 13:08:49",
    "assignedTo": "test",
    "assignedDate": "2022-12-02 13:08:49",
    "estStarted": "2022-12-01",
    "realStarted": "2022-12-02 11:04:59",
    "finishedBy": "",
    "finishedDate": "",
    "finishedList": "",
    "canceledBy": "",
    "canceledDate": "",
    "closedBy": "",
    "closedDate": "",
    "planDuration": 0,
    "realDuration": 0,
    "closedReason": "",
    "lastEditedBy": "admin",
    "lastEditedDate": "2022-12-02 14:07:21",
    "activatedDate": "",
    "order": 0,
    "repo": 0,
    "mr": 0,
    "entry": "",
    "lines": "",
    "v1": "",
    "v2": "",
    "deleted": "0",
    "vision": "rnd",
    "storyID": null,
    "storyTitle": null,
    "latestStoryVersion": null,
    "storyStatus": null,
    "assignedToRealName": "林晨",
    "children": [],
    "members": [],
    "team": [],
    "files": [],
    "needConfirm": false,
    "progress": 50
}