关闭Bug 分享链接

作者:宋辰轩 最后编辑:宋辰轩 于 2024-02-21 15:03:09 浏览量:1382
POST
/bugs/:id/close

关闭Bug

请求头

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

请求体

名称 类型 必填 描述
comment string 备注

请求示例

{
    "comment":"this is a comment"
} 

请求响应

名称 类型 必填 描述
id int Bug ID
product int 所属产品
branch int 所属分支
module int 所属模块
project int 所属项目
execution int 所属执行
toTask boolean 转为任务
toStory boolean 转为需求
title string Bug标题
keywords string 关键字
severity int 严重程度
pri int 优先级
type string Bug类型(codeerror 代码错误 | config 配置相关 | install 安装部署 | security 安全相关 | performance 性能问题 | standard 标准规范 | automation |测试脚本 | designdefect 设计缺陷 | others 其他)
os string 操作系统
browser string 浏览器
steps string 重现步骤
task int 相关任务
story int 相关需求
openedBy string 创建人
openedDate datetime 创建时间
deadline date 截止日期
assignedTo 指派给
assgnedDate datetime 指派时间
resolvedBy 由谁解决
resolvedDate datetime 解决时间
resolvedBuild string 解决版本
closedBy 由谁关闭
closedDate datetime 关闭时间
status string 状态(active 激活 | resolved 已解决 | closed 已关闭)

响应示例

{
    "id": 1,
    "project": 7,
    "product": 1,
    "branch": 0,
    "module": 0,
    "execution": 1,
    "plan": 0,
    "story": 1,
    "storyVersion": 1,
    "task": 1,
    "toTask": 0,
    "toStory": 0,
    "title": "aaa",
    "keywords": "",
    "severity": 3,
    "pri": 1,
    "type": "codeerror",
    "os": "",
    "browser": "",
    "hardware": "",
    "found": "",
    "steps": "<p>[步骤]进入首页</p>\r\n<p>[结果]出现乱码&nbsp;&nbsp;&nbsp;&nbsp;</p>\r\n<p>[期望]正常显示</p>",
    "status": "active",
    "subStatus": "",
    "color": "",
    "confirmed": 0,
    "activatedCount": 0,
    "activatedDate": "1969-12-31T16:00:00Z",
    "feedbackBy": "",
    "notifyEmail": "",
    "mailto": ["lihua"],
    "openedBy": {
        "id": 7,
        "account": "tester1",
        "avatar": "",
        "realname": "测试甲"
    },
    "openedDate": "2012-06-05T02:56:11Z",
    "openedBuild": "trunk",
    "assignedTo": {
        "id": 4,
        "account": "dev1",
        "avatar": "",
        "realname": "开发甲"
    },
    "assignedDate": "1969-12-31T16:00:00Z",
    "deadline": null,
    "resolvedBy": null,
    "resolution": "",
    "resolvedBuild": "",
    "resolvedDate": null,
    "closedBy": null,
    "closedDate": "1969-12-31T16:00:00Z",
    "duplicateBug": 0,
    "linkBug": "",
    "case": 0,
    "caseVersion": 1,
    "result": 0,
    "repo": 0,
    "entry": "",
    "lines": "",
    "v1": "",
    "v2": "",
    "repoType": "",
    "testtask": 0,
    "lastEditedBy": {
        "id": 1,
        "account": "admin",
        "avatar": "",
        "realname": "管理员"
    },
    "lastEditedDate": "2021-12-05T14:53:35Z",
    "deleted": false,
    "executionName": "企业网站第一期",
    "storyTitle": "首页设计和开发",
    "storyStatus": "active",
    "latestStoryVersion": 2,
    "taskName": null,
    "planName": null,
    "projectName": "企业管理系统",
    "toCases": [],
    "files": []
}