产品计划关联需求 分享链接

作者:王怡栋 最后编辑:禅道软件 于 2022-03-17 13:34:57 浏览量:3497
POST
/productplans/:id/linkstories

产品计划关联需求

请求头

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

请求体

名称类型必填描述
storiesarray新增关联的需求,比如 [1, 2]

请求示例

{
    "stories": [ 11 ]
}

请求响应

名称类型必填描述
idint计划ID
productint所属产品
branchint所属计划
parentint父计划
titlestring计划名称
descstring计划描述
begindate计划开始日期
enddate计划结束日期
storiesarray关联需求
  ∟  idint需求ID
  ∟  titlestring需求标题
  ∟  productint所属产品
  ∟  branchint所属分支
  ∟  categorystring需求类型(feature 功能 | interface 接口 | performance 性能 | safe 安全 | experience 体验 | improve 改进 | other 其他)
  ∟  priint需求优先级
bugsarray关联Bug
  ∟  idintBug ID
  ∟  productint产品ID
  ∟  branchint所属分支
  ∟  moduleint所属模块
  ∟  executionint所属执行
  ∟  storyint相关需求
  ∟  titlestringBug标题
  ∟  severityint严重程度
  ∟  priintBug优先级
  ∟  typestringBug类型
  ∟  stepsstringBug复现步骤
  ∟  statusstringBug状态(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": [
        {
            "story": 11,
            "plan": "4",
            "order": 1,
            "id": 11,
            "parent": 0,
            "product": 4,
            "branch": 2,
            "module": 22,
            "source": "",
            "sourceNote": "",
            "fromBug": 0,
            "title": "分支2需求",
            "keywords": "",
            "type": "story",
            "category": "feature",
            "pri": 3,
            "estimate": 0,
            "status": "active",
            "subStatus": "",
            "color": "",
            "stage": "planned",
            "stagedBy": "",
            "mailto": "",
            "openedBy": "admin",
            "openedDate": "2021-11-23 15:37:37",
            "assignedTo": "",
            "assignedDate": "0000-00-00 00:00:00",
            "lastEditedBy": "",
            "lastEditedDate": "0000-00-00 00:00:00",
            "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": []
}