添加任务日志 分享链接

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

添加任务日志

请求头

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

请求体

名称 类型 必填 描述
id array
从0自增,表示记录几条日志,如3条日志则填入 [0,1,2]
objectID array
任务ID
dates array

日期
work array
工作内容
consumed array

消耗
left array

剩余
objectType array

对象类型,此处填入task

请求示例

{
    "id": [0,1,2],
    "objectID": [2,2,2],
    "dates": ["2024-02-27","2024-02-28","2024-02-29"],
    "work": ["work1","work2","work3"],
    "consumed": [2,2,2],
    "left": [6,4,2],
    "objectType": ["task","task","task"]
}

请求响应

名称 类型 必填 描述
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": 6,
    "left": 2,
    "deadline": "2024-04-31",
    "status": "doing",
    "subStatus": "",
    "color": "",
    "mailto": null,
    "desc": "",
    "version": 1,
    "openedBy": "admin",
    "openedDate": "2024-02-02T05:08:49Z",
    "assignedTo": "admin",
    "assignedDate": "2024-02-02T07:55:26Z",
    "estStarted": "2024-02-01",
    "realStarted": "2024-02-02T06:04:59Z",
    "finishedBy": "admin",
    "finishedDate": "2024-02-02T07:45:27Z",
    "finishedList": "",
    "canceledBy": "",
    "canceledDate": null,
    "closedBy": "",
    "closedDate": null,
    "planDuration": 0,
    "realDuration": 1,
    "closedReason": "",
    "lastEditedBy": "admin",
    "lastEditedDate": "2024-02-02T07:55:26Z",
    "activatedDate": "",
    "order": 0,
    "repo": 0,
    "mr": 0,
    "entry": "",
    "lines": "",
    "v1": "",
    "v2": "",
    "deleted": "0",
    "vision": "rnd",
    "storyID": null,
    "storyTitle": null,
    "latestStoryVersion": null,
    "storyStatus": null,
    "assignedToRealName": "admin",
    "children": [],
    "members": [],
    "team": [],
    "files": [],
    "needConfirm": false,
    "progress": 80
}