解决Bug 分享链接

作者:宋辰轩 最后编辑:宋辰轩 于 2024-02-21 16:29:13 浏览量:602
POST
/bugs/:id/resolve

解决Bug

请求头

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

请求体

名称 类型 必填 描述
resolution string 解决方案(bydesign 设计如此 | duplicate 重复bug | external 外部原因 | fixed  已解决 | notrepro 无法重现 | postponed 延期处理 | willnotfix 不予解决 | tostory 转需求)
duplicateBug int 重复Bug ID,当 resolution 选择 duplicate 时,应传入此参数
resolvedBuild int/string 解决版本,传入版本的ID,或者传入 trunk(主干)
resolvedDate datetime 解决时间
assignedTo string 指派给
comment string 备注

请求示例

{
    "resolution":"duplicate",
    "duplicateBug":5,
    "resolvedBuild":"trunk",
    "resolvedDate":"2023-07-02 20:10:45",
    "assignedTo":"admin",
    "comment":"fix bug 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": "resolved",
    "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": 1,
        "account": "admin",
        "avatar": "",
        "realname": "admin"
    },
    "assignedDate": "2023-07-02 20:10:45",
    "deadline": null,
    "resolvedBy": admin,
    "resolution": "duplicate",
    "resolvedBuild": "trunk",
    "resolvedDate": 2023-07-02 20:10:45,
    "closedBy": null,
    "closedDate": null,
    "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": []
}