获取任务详情 分享链接

GET
/tasks/:id

获取任务详情

请求头

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

请求响应

名称 类型 必填 描述
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 string 创建人
openedDate datetime 创建时间
assignedTo string 指派给
assignedDate datetime 指派时间
estStarted date 预计开始日期
realStarted datetime 实际开始时间
finishedBy string 由谁完成
finishedDate datetime 完成时间
closedBy string 由谁关闭
closedDate datetime 关闭时间

响应示例

{
    "id": 22,
    "project": 41,
    "parent": 0,
    "execution": 42,
    "module": 0,
    "design": 0,
    "story": 0,
    "storyVersion": 1,
    "designVersion": 0,
    "fromBug": 0,
    "name": "多人任务",
    "type": "devel",
    "pri": 3,
    "estimate": 2,
    "consumed": 0,
    "left": 2,
    "deadline": "2021-12-23",
    "status": "wait",
    "subStatus": "",
    "color": "",
    "mailto": [],
    "desc": "",
    "version": 1,
    "openedBy": {
        "id": 1,
        "account": "admin",
        "avatar": "",
        "realname": "管理员"
    },
    "openedDate": "2021-12-05T12:00:57Z",
    "assignedTo": {
        "id": 1,
        "account": "admin",
        "avatar": "",
        "realname": "管理员"
    },
    "assignedDate": "2021-12-05T12:00:57Z",
    "estStarted": "2021-12-05",
    "realStarted": null,
    "finishedBy": null,
    "finishedDate": null,
    "finishedList": "",
    "canceledBy": null,
    "canceledDate": null,
    "closedBy": null,
    "closedDate": null,
    "planDuration": 0,
    "realDuration": 0,
    "closedReason": "",
    "lastEditedBy": null,
    "lastEditedDate": null,
    "activatedDate": "",
    "deleted": false,
    "storyID": null,
    "storyTitle": null,
    "latestStoryVersion": null,
    "storyStatus": null,
    "assignedToRealName": "管理员",
    "children": [],
    "team": [
        {
            "id": 50,
            "root": 22,
            "type": "task",
            "account": "admin",
            "role": "",
            "limited": "no",
            "join": "2021-12-05",
            "days": 0,
            "hours": 0,
            "estimate": 1,
            "consumed": 0,
            "left": 1,
            "order": 0,
            "realname": "管理员",
            "avatar": "",
            "progress": 0
        },
        {
            "id": 51,
            "root": 22,
            "type": "task",
            "account": "productManager",
            "role": "",
            "limited": "no",
            "join": "2021-12-05",
            "days": 0,
            "hours": 0,
            "estimate": 1,
            "consumed": 0,
            "left": 1,
            "order": 1,
            "realname": "产品经理",
            "avatar": "",
            "progress": 0
        }
    ],
    "files": [],
    "needConfirm": false,
    "progress": 0,
    "storySpec": "",
    "storyVerify": "",
    "storyFiles": [],
    "executionName": "testt",
    "moduleTitle": "/",
    "actions": [
        {
            "id": 1253748,
            "objectType": "task",
            "objectID": 22,
            "product": ",4,",
            "project": 41,
            "execution": 42,
            "actor": "管理员",
            "action": "opened",
            "date": "2021-12-05 20:00:57",
            "comment": "",
            "extra": "",
            "read": "1",
            "history": [],
            "desc": "2021-12-05 20:00:57, 由 <strong>管理员</strong> 创建。\n"
        }
    ],
    "preAndNext": {
        "pre": "",
        "next": ""
    }
}
                    
王怡栋 1195