简要描述:

  • 任务详情

请求域名:

  • https://dev8.yunzmall.com/business/1/

请求URL:

GET/plugin/project-manager/task/detail

参数:

参数名 是否必须 类型 说明
id int 任务ID

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "任务详情",
    "data": {
        "id": 3,
        "uniacid": 6,
        "business_id": 1,
        "project_id": 1,
        "staff_uid": 1,
        "create_uid": 1,
        "archive_uid": 0,
        "parent_id": 0,
        "name": "测试任务",
        "desc": "任务描述",
        "work_group_id": 0,
        "project_group_id": 0,
        "project_sort": 0,
        "priority": 0,
        "status": 1,
        "is_archive": 0,
        "work_sort": 1651044259,
        "start_time": "2022-04-27 15:24:19",
        "deadline_time": null,
        "archive_time": null,
        "created_at": "2022-04-24 15:41:55",
		"statistics_task_status" : {
			"defect_finish_count": 0,
			"defect_in_progress_count": 0,
			"defect_not_started_count": 0,
			"design_finish_count": 0,
			"design_in_progress_count": 0,
			"design_not_started_count": 1,
			"develop_finish_count": 0,
			"develop_in_progress_count": 0,
			"develop_not_started_count": 1,
			"finish_count": 0,
			"in_progress": 0,
			"not_started_count": 2,
			"test_design_finish_count": 0,
			"test_design_in_progress_count": 0,
			"test_not_started_count": 0,
		},
        "status_body": {
            "id": 1,
            "name": "进行中",
            "color": "#a7cfae",
            "icon": "",
            "desc": ""
        },
        "priority_name": "!! 普通",
        "has_one_staff": {
            "id": 1,
            "uniacid": 6,
            "business_id": 1,
            "uid": 2455,
            "user_id": "",
            "name": "测试员工",
            "mobile": "15012345678",
            "position": "",
            "gender": 0,
            "telephone": "",
            "email": "",
            "avatar": "https://open.work.weixin.qq.com/wwopen/userQRCode?vcode=vc1020a663f6887d1a",
            "alias": "",
            "status": 0,
            "qr_code": "",
            "address": "",
            "open_userid": "",
            "main_department": "",
            "updated_at": null,
            "created_at": null,
            "deleted_at": null,
            "right_type": 0,
            "disabled": 0,
            "userid": "",
            "avatar_mediaid": "https://open.work.weixin.qq.com/wwopen/userQRCode?vcode=vc1020a663f6887d1a"
        },
        "has_one_project": {
            "id": 1,
            "uniacid": 6,
            "business_id": 1,
            "cover": "1",
            "name": "默认项目",
            "creator_uid": 2455,
            "permit_visible": 1,
            "is_share": 0,
            "classify_id": 0,
            "is_archive": 0,
            "archive_time": null,
            "created_at": "1970-01-01 08:00:00",
            "updated_at": null,
            "deleted_at": null,
            "cover_str": "1",
            "creator": null
        },
        "label": [
            {
                "id": 1,
                "uniacid": 6,
                "business_id": 1,
                "name": "测试",
                "style_color": "",
                "created_at": "2022-04-22 10:45:36",
                "updated_at": "2022-04-22 10:45:36",
                "deleted_at": null,
                "pivot": {
                    "task_id": 3,
                    "label_id": 1
                }
            }
        ],
        "related_task": [
            {
                "id": 2,
                "task_id": 3,
                "related_task_id": 1,
                "created_at": null,
                "updated_at": null
            }
        ],
        "participant": [
            {
                "id": 3,
                "task_id": 3,
                "participant_uid": 1,
                "participant_staff": [
                    {
                        "id": 1,
                        "uniacid": 6,
                        "business_id": 1,
                        "uid": 2455,
                        "user_id": "",
                        "name": "测试员工",
                        "mobile": "15012345678",
                        "position": "",
                        "gender": 0,
                        "telephone": "",
                        "email": "",
                        "avatar": "https://open.work.weixin.qq.com/wwopen/userQRCode?vcode=vc1020a663f6887d1a",
                        "alias": "",
                        "status": 0,
                        "qr_code": "",
                        "address": "",
                        "open_userid": "",
                        "main_department": "",
                        "updated_at": null,
                        "created_at": null,
                        "deleted_at": null,
                        "right_type": 0,
                        "disabled": 0,
                        "userid": "",
                        "avatar_mediaid": "https://open.work.weixin.qq.com/wwopen/userQRCode?vcode=vc1020a663f6887d1a"
                    }
                ]
            }
        ]
    }
}

错误时返回:

{
  "result": 0,
  "msg": "",
  "data": []
}

data参数说明

参数名 类型 说明
id int 任务编号
name string 任务名称
desc string 任务描述
start_time string 任务开始时间
deadline_time string 任务截止时间
created_at string 创建时间
is_archive int 是否归档 1是0否
priority_name string 优先级
status_body obj 任务状态对象
has_one_project obj 任务所属项目
has_one_staff obj 任务负责人对象
label array 任务标签集合
participant array 任务参与人

label参数说明:

参数名 类型 说明
label_id int 标签ID
name string 标签名称
style_color string 标签样式颜色

participant参数说明:

参数名 类型 说明
participant_staff.id int 员工ID
participant_staff.name string 员工名称
participant_staff.avatar string 员工头像

status_body参数说明:

参数名 类型 说明
id int 状态ID
name string 标签名称
color string 状态颜色
icon string 标签图标

has_one_project参数说明:

参数名 类型 说明
id int 项目ID
name string 项目名称
creator.name string 项目创建人名称
created_at string 创建时间

has_one_staff参数说明:

参数名 类型 说明
id int 员工ID
name string 员工名称
avatar string 员工头像

statistics_task_status参数说明:

参数名 类型 说明
test_not_started_count int 测试 未开始数量
test_design_in_progress_count int 测试 进行中数量
test_design_finish_count int 测试 已完成
not_started_count int 未开始数量
in_progress int 进行中数量
finish_count int 完成数量
develop_not_started_count int 开发 未开始数量
develop_in_progress_count int 开发 进行中数量
develop_finish_count int 开发 完成数量
design_not_started_count int 设计 未开始数量
design_in_progress_count int 设计 进行中数量
design_finish_count int 设计 完成数量
defect_not_started_count int 缺陷 未开始数量
defect_in_progress_count int 缺陷 进行中数量
defect_finish_count int 缺陷 完成数量

备注:

  • 更多返回错误代码请看首页的错误代码描述