产品计划关联Bug 分享链接

作者:王怡栋 最后编辑:宋辰轩 于 2023-07-06 08:47:25 浏览量:3847
POST
/products/:id/linkbugs

产品计划关联Bug

请求体

名称 类型 必填 描述
bugs array 关联的Bug ID,比如 [1, 2]

请求示例

{
    "bugs": [7]
}

请求响应

名称 类型 必填 描述
id int 计划ID
product int 所属产品
branch int 所属计划
parent int 父计划
title string 计划名称
desc string 计划描述
begin date 计划开始日期
end date 计划结束日期
stories array 关联需求
  ∟  id int 需求ID
  ∟  title string 需求标题
  ∟  product int 所属产品
  ∟  branch int 所属分支
  ∟  category string 需求类型(feature 功能 | interface 接口 | performance 性能 | safe 安全 | experience 体验 | improve 改进 | other 其他)
  ∟  pri int 需求优先级
bugs array 关联Bug
  ∟  id int Bug ID
  ∟  product int 产品ID
  ∟  branch int 所属分支
  ∟  module int 所属模块
  ∟  execution int 所属执行
  ∟  story int 相关需求
  ∟  title string Bug标题
  ∟  severity int 严重程度
  ∟  pri int Bug优先级
  ∟  type string Bug类型
  ∟  steps string Bug复现步骤
  ∟  status string Bug状态(active 激活 | resolved 已解决 | closed 已关闭)

响应示例

{
    "id": 4,
    "product": 4,
    "branch": 2,
    "parent": 0,
    "title": "分支2计划",
    "desc": "",
    "begin": "2021-11-30",
    "end": "2021-12-06",
    "order": "",
    "deleted": false,
    "stories": [],
    "bugs": [
        {
            "id": 7,
            "project": 0,
            "product": 4,
            "branch": 0,
            "module": 0,
            "execution": 0,
            "plan": 4,
            "story": 0,
            "storyVersion": 1,
            "task": 0,
            "toTask": 0,
            "toStory": 0,
            "title": "Bug1",
            "keywords": "",
            "severity": 3,
            "pri": 3,
            "type": "codeerror",
            "os": "",
            "browser": "",
            "hardware": "",
            "found": "",
            "steps": "<p>[步骤]</p>\n<br />\n<p>[结果]</p>\n<br />\n<p>[期望]</p>\n<br />",
            "status": "active",
            "subStatus": "",
            "color": "",
            "confirmed": 0,
            "activatedCount": 0,
            "activatedDate": "0000-00-00 00:00:00",
            "mailto": "",
            "openedBy": "admin",
            "openedDate": "2021-12-01 09:25:23",
            "openedBuild": "trunk",
            "assignedTo": "",
            "assignedDate": "0000-00-00 00:00:00",
            "deadline": "0000-00-00",
            "resolvedBy": "",
            "resolution": "",
            "resolvedBuild": "",
            "resolvedDate": "0000-00-00 00:00:00",
            "closedBy": "",
            "closedDate": "0000-00-00 00:00:00",
            "duplicateBug": 0,
            "linkBug": "",
            "case": 0,
            "caseVersion": 0,
            "result": 0,
            "repo": 0,
            "entry": "",
            "lines": "",
            "v1": "",
            "v2": "",
            "repoType": "",
            "testtask": 0,
            "lastEditedBy": "",
            "lastEditedDate": "0000-00-00 00:00:00",
            "deleted": "0"
        }
    ]
}