修改计划 分享链接

最后编辑:王怡栋 于 2022-03-17 13:34:57
PUT
/productplans/:id

修改计划

请求头

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

请求体

名称 类型 必填 描述
branch int 所属分支
title string 计划名称
begin date 计划开始日期
end date 计划结束日期
desc string 计划描述

请求响应

名称 类型 必填 描述
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": 2,
    "product": 4,
    "branch": 0,
    "parent": 0,
    "title": "主干计划",
    "desc": "",
    "begin": "2021-11-23",
    "end": "2021-11-29",
    "order": "",
    "deleted": false,
    "stories": [
        {
            "story": 12,
            "plan": "2",
            "order": 1,
            "id": 12,
            "parent": 0,
            "product": 4,
            "branch": 0,
            "module": 23,
            "source": "",
            "sourceNote": "",
            "fromBug": 0,
            "title": "主干需求",
            "keywords": "",
            "type": "story",
            "category": "feature",
            "pri": 0,
            "estimate": 0,
            "status": "active",
            "subStatus": "",
            "color": "",
            "stage": "planned",
            "stagedBy": "",
            "mailto": null,
            "openedBy": "admin",
            "openedDate": "2021-11-23 16:04:30",
            "assignedTo": "admin",
            "assignedDate": "2021-11-23 19:42:55",
            "lastEditedBy": "admin",
            "lastEditedDate": "2021-11-23 19:42:55",
            "reviewedBy": "",
            "reviewedDate": "0000-00-00 00:00:00",
            "closedBy": "",
            "closedDate": "0000-00-00 00:00:00",
            "closedReason": "",
            "toBug": 0,
            "childStories": "",
            "linkStories": "",
            "duplicateStory": 0,
            "version": 1,
            "URChanged": "0",
            "deleted": "0"
        }
    ],
    "bugs": [
        {
            "id": 5,
            "project": 0,
            "product": 4,
            "branch": 1,
            "module": 24,
            "execution": 0,
            "plan": 2,
            "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><br /><p>[结果]</p><br /><p>[期望]</p><br />",
            "status": "active",
            "subStatus": "",
            "color": "",
            "confirmed": 0,
            "activatedCount": 0,
            "activatedDate": "0000-00-00 00:00:00",
            "mailto": "",
            "openedBy": "admin",
            "openedDate": "2021-11-29 13:02:34",
            "openedBuild": "trunk",
            "assignedTo": "",
            "assignedDate": "0000-00-00 00:00:00",
            "deadline": "2021-11-29",
            "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"
        }
    ]
}
                    
王怡栋 637