GET
/products/:id/bugs
获取产品Bug列表
请求头
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
Token | String | 是 | 认证凭证Token |
请求响应
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
page | int | 是 | 当前页数 |
total | int | 是 | Bug总数 |
limit | int | 是 | 每页Bug数 |
bugs | array | 是 | Bug列表 |
∟ id | int | 是 | Bug ID |
∟ product | int | 是 | 所属产品 |
∟ branch | int | 是 | 所属分支 |
∟ module | int | 是 | 所属模块 |
∟ project | int | 是 | 所属项目 |
∟ execution | int | 是 | 所属执行 |
∟ toTask | int | 是 | 转为任务 |
∟ toStory | int | 是 | 转为需求 |
∟ 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 | 是 | 创建人 | |
∟ openedDate | datetime | 是 | 创建时间 |
∟ deadline | date | 否 | 截止日期 |
∟ assignedTo | 否 | 指派给 | |
∟ assignedDate | datetime | 否 | 指派时间 |
∟ resolvedBy | 否 | 由谁解决 | |
∟ resolvedDate | datetime | 否 | 解决时间 |
∟ resolvedBuild | string | 否 | 解决版本 |
∟ closedBy | 否 | 由谁关闭 | |
∟ closedDate | datetime | 否 | 关闭时间 |
响应示例
{
"page": 1,
"total": 1,
"limit": 20,
"bugs": [
{
"id": 9,
"project": 0,
"product": 4,
"branch": 0,
"module": 0,
"execution": 0,
"plan": 0,
"story": 0,
"storyVersion": 1,
"task": 0,
"toTask": 0,
"toStory": 0,
"title": "Bug3",
"keywords": "",
"severity": 3,
"pri": 0,
"type": "",
"os": "",
"browser": "",
"hardware": "",
"found": "",
"steps": "",
"status": {
"code": "active",
"name": "激活"
},
"subStatus": "",
"color": "",
"confirmed": 0,
"activatedCount": 0,
"activatedDate": "1969-12-31T16:00:00Z",
"feedbackBy": "",
"notifyEmail": "",
"mailto": null,
"openedBy": {
"id": 1,
"account": "admin",
"avatar": "",
"realname": "管理员"
},
"openedDate": "2021-12-01T01:25:42Z",
"openedBuild": "主干",
"assignedTo": null,
"assignedDate": "1969-12-31T16:00:00Z",
"deadline": "1970-01-01",
"resolvedBy": null,
"resolution": "",
"resolvedBuild": "",
"resolvedDate": "1969-12-31T16:00:00Z",
"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": null,
"lastEditedDate": "1969-12-31T16:00:00Z",
"deleted": false,
"needconfirm": false
}
]
}