关闭需求 分享链接

作者:宋辰轩 最后编辑:宋辰轩 于 2023-08-18 10:00:21 浏览量:1861
POST
/stories/:id/close

关闭需求

请求头

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

请求体

名称 类型 必填 描述
closedReason string 关闭原因(done 已完成 | duplicate 重复 | postponed 延期 | willnotdo 不做 | cancel 已取消 | bydesign 设计如此)
duplicate int 重复研发需求 当 closedReason 选择为 duplicate 时,传入重复研发需求的 ID
comment string 备注

请求示例

{
    "closedReason":"done",
    "comment":"close the story"
}

请求响应

名称 类型 必填 描述
id int 需求ID
product int 所属产品
branch int 所属分支
module int 所属产品模块
fromBug int 来自于Bug
source string 需求来源(customer 客户 | user 用户 | po 产品经理 | market 市场)
sourceNote string 来源备注
title string 需求标题
category string 类型(feature 功能 | interface 接口 | performance 性能 | safe 安全 | experience 体验 | improve 改进 | other 其他)
stage string 阶段(wait 未开始 | planned 已计划 | projected 已立项 | developing 研发中 | developed 研发完毕 | testing 测试中 | tested 测试完毕 | verified 已验收 | released 已发布 | closed 已关闭)
pri int 优先级
estimate float 预计工时
verify string 验收标准
status string 状态(draft 草稿 | active 激活 | closed 已关闭 | changed 已变更)
openedBy 创建人
openedDate datetime 创建时间
toBug int 转为Bug

响应示例

{
    "id": 1,
    "vision": "rnd",
    "parent": 0,
    "product": 1,
    "branch": 0,
    "module": 0,
    "plan": "",
    "source": "",
    "sourceNote": "",
    "fromBug": 0,
    "feedback": 2,
    "title": "222",
    "keywords": "",
    "type": "story",
    "category": "feature",
    "pri": 3,
    "estimate": 0,
    "status": "closed",
    "subStatus": "",
    "color": "",
    "stage": "closed",
    "stagedBy": "",
    "mailto": null,
    "lib": 0,
    "fromStory": 0,
    "fromVersion": 1,
    "openedBy": {
        "id": 1,
        "account": "admin",
        "avatar": null,
        "realname": "admin"
    },
    "openedDate": "2023-08-15T09:37:49Z",
    "assignedTo": null,
    "assignedDate": "2023-08-18T01:30:43Z",
    "approvedDate": null,
    "lastEditedBy": {
        "id": 1,
        "account": "admin",
        "avatar": null,
        "realname": "admin"
    },
    "lastEditedDate": "2023-08-18T01:30:43Z",
    "changedBy": "",
    "changedDate": null,
    "reviewedBy": null,
    "reviewedDate": null,
    "closedBy": {
        "id": 1,
        "account": "admin",
        "avatar": null,
        "realname": "admin"
    },
    "closedDate": "2023-08-18T01:30:43Z",
    "closedReason": "duplicate",
    "activatedDate": null,
    "toBug": 0,
    "childStories": "",
    "linkStories": "",
    "linkRequirements": "",
    "twins": "",
    "duplicateStory": 2,
    "version": 1,
    "storyChanged": "0",
    "feedbackBy": "",
    "notifyEmail": "",
    "BSA": "",
    "duration": "",
    "demand": 0,
    "submitedBy": "",
    "roadmap": "",
    "URChanged": "0",
    "deleted": false,
    "spec": "",
    "verify": "",
    "files": [],
    "executions": [],
    "tasks": [],
    "stages": [],
    "extraStories": {
        "2": "222"
    },
    "children": [],
    "feedbackTitle": "222"
}