获取计划详情 分享链接

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

获取计划详情

请求头

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

请求响应

名称类型必填描述
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": 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"
        }
    ]
}