HTTP/HTTPS
请求协议
YesDev / WebAPI / bug统计
bug统计
接口地址:http://test.www.yesdev.cn/api/platform.php?s=Platform.Problem_Problem.BugGroupCount
接口描述: bug统计
接口参数
参数名字 | 类型 | 是否必须 | 默认值 | 其他 | 说明 |
---|---|---|---|---|---|
access_token | 字符串 | 可选 | 访问令牌,仅当开启签名验证时需要传递,生成令牌可使用App.Auth.ApplyToken接口 | ||
app_key | 字符串 | 可选 | app_key,团队代码 | ||
sign | 字符串 | 可选 | - | 动态签名,签名算法请联系我们技术客服获取 | |
project_id | 整型 | 可选 | - | 项目id | |
problem_type | 字符串 | 可选 | - | 问题类型 | |
product_category_id | 整型 | 可选 | - | 产品线id | |
assign_staff_ids | 字符串 | 可选 | - | 负责人ids支持多选 | |
product_start_time | 字符串 | 可选 | - | 问题开始时间 | |
product_start_2_time | 字符串 | 可选 | - | 问题开始时间 | |
problem_status | 字符串 | 可选 | - | 问题状态 |
返回字段
返回结果 | 类型 | 说明 |
---|---|---|
ret | 整型 | 状态码,200表示成功,4xx表示客户端非法请求,5xx表示服务器错误 |
data | 对象或混合类型 | 业务数据,由各自接口指定,通常为对象 |
msg | 字符串 | 提示信息,失败时的错误提示 |
在线测试
参数 | 是否必须 | 值 |
---|---|---|
service | 必须 | |
access_token | 可选 | |
app_key | 可选 | |
sign | 可选 | |
project_id | 可选 | |
problem_type | 可选 | |
product_category_id | 可选 | |
assign_staff_ids | 可选 | |
product_start_time | 可选 | |
product_start_2_time | 可选 | |
problem_status | 可选 |
客户端请求示例
{
"ret": 200,
"data": {
"bug_count": {
//按产品线统计
"product_category_group_list": [
{
"product_category_id": 17,
"product_name": "YesDev", //产品线名称
"wait_problem_nums": 7, //待解决
"fixing": 0, //进行中
"reopen": 0, //重开
"fixed": 65, //已解决
"delay": 2, //暂缓
"ignore": 9, //误报
"closed": 125, //关闭
"bug_total_nums": 208, //Bug总数量
"fix_bug_rate": "91.35" //修复进度(%)
},
{
"product_category_id": 16,
"product_name": "接口大师",
"wait_problem_nums": 1,
"fixing": 0,
"reopen": 0,
"fixed": 0,
"delay": 0,
"ignore": 0,
"closed": 3,
"bug_total_nums": 4,
"fix_bug_rate": "75.00"
},
{
"product_category_id": 15,
"product_name": "果创云",
"wait_problem_nums": 0,
"fixing": 0,
"reopen": 0,
"fixed": 0,
"delay": 0,
"ignore": 0,
"closed": 1,
"bug_total_nums": 1,
"fix_bug_rate": "100.00"
},
{
"product_category_id": 0,
"product_name": "未关联产品线的",
"wait_problem_nums": 3,
"fixing": 0,
"reopen": 0,
"fixed": 4,
"delay": 0,
"ignore": 2,
"closed": 19,
"bug_total_nums": 28,
"fix_bug_rate": "82.14"
}
],
//按负责人统计
"assign_staff_group_list": [
{
"assign_staff_id": 807,
"staff_name": "全权武", //姓名
"bug_total_nums": 4, //负责Bug数量
"have_fix_bug": 4, //已修复数量
"fix_bug_rate": "100.00" //修复进度(%)
},
{
"assign_staff_id": 49,
"staff_name": "黄俊华",
"bug_total_nums": 70,
"have_fix_bug": 61,
"fix_bug_rate": "87.14"
},
{
"assign_staff_id": 48,
"staff_name": "何捷聪",
"bug_total_nums": 121,
"have_fix_bug": 109,
"fix_bug_rate": "90.08"
},
{
"assign_staff_id": 47,
"staff_name": "黄炜珩",
"bug_total_nums": 1,
"have_fix_bug": 0,
"fix_bug_rate": 0
},
{
"assign_staff_id": 46,
"staff_name": "王敏杰",
"bug_total_nums": 28,
"have_fix_bug": 28,
"fix_bug_rate": "100.00"
},
{
"assign_staff_id": 45,
"staff_name": "黄禅宗",
"bug_total_nums": 17,
"have_fix_bug": 15,
"fix_bug_rate": "88.24"
}
],
//按创建人统计
"created_staff_group_list": [
{
"created_staff_id": 50,
"staff_name": "郑瑞琳", //姓名
"bug_total_nums": 3, //提Bug数量
"have_fix_bug": 1, //已修复数量
"fix_bug_rate": "33.33" //修复进度(%)
},
{
"created_staff_id": 49,
"staff_name": "黄俊华",
"bug_total_nums": 17,
"have_fix_bug": 14,
"fix_bug_rate": "82.35"
},
{
"created_staff_id": 48,
"staff_name": "何捷聪",
"bug_total_nums": 12,
"have_fix_bug": 9,
"fix_bug_rate": "75.00"
},
{
"created_staff_id": 47,
"staff_name": "黄炜珩",
"bug_total_nums": 4,
"have_fix_bug": 3,
"fix_bug_rate": "75.00"
},
{
"created_staff_id": 46,
"staff_name": "王敏杰",
"bug_total_nums": 2,
"have_fix_bug": 2,
"fix_bug_rate": "100.00"
},
{
"created_staff_id": 45,
"staff_name": "黄禅宗",
"bug_total_nums": 200,
"have_fix_bug": 185,
"fix_bug_rate": "92.50"
},
{
"created_staff_id": 44,
"staff_name": "管理员",
"bug_total_nums": 3,
"have_fix_bug": 3,
"fix_bug_rate": "100.00"
}
],
//按项目统计
"project_group_list": [
{
"project_id": 481,
"problem_toatl_nums": 14, //Bug总数量
"project_name": "YesDev 2.1 用户登录注册升级 " //关联项目
},
{
"project_id": 405,
"problem_toatl_nums": 2,
"project_name": "接口大师 v3.7 版本"
},
{
"project_id": 403,
"problem_toatl_nums": 35,
"project_name": "YesDev 2.0 全新版本"
},
{
"project_id": 224,
"problem_toatl_nums": 1,
"project_name": "不被遗忘的需求 YesDev v1.5.1 作战图(人员+时间)"
},
{
"project_id": 223,
"problem_toatl_nums": 2,
"project_name": "YesDev v1.11 深度用户体验版本"
},
{
"project_id": 194,
"problem_toatl_nums": 5,
"project_name": "20210331 YesDev v1.11 文件管理"
},
{
"project_id": 170,
"problem_toatl_nums": 2,
"project_name": "YesDev v1.10 版本,用户体验升级"
},
{
"project_id": 149,
"problem_toatl_nums": 1,
"project_name": "20210305 YesDev v1.8 任务迭代"
},
{
"project_id": 131,
"problem_toatl_nums": 1,
"project_name": "YesDev v1.7 版本"
},
{
"project_id": 98,
"problem_toatl_nums": 6,
"project_name": "YesDev私有部署-北京计算机应用及研究院"
},
{
"project_id": 0,
"problem_toatl_nums": 172,
"project_name": "未关联项目的"
}
],
// 按需求统计
"need_group_list": [
{
"need_id": 409,
"problem_toatl_nums": 1, //Bug总数量
"need_name": "任务支持任务内容描述" //关联需求
},
{
"need_id": 0,
"problem_toatl_nums": 240,
"need_name": "未关联需求的"
}
],
//按优先级统计
"problem_level_group_list": [
{
"problem_level": 10,
"bug_group_total_nums": 11, //Bug总数量
"proportion": "4.56", //占比(%)
"problem_level_name": "低" //优先级
},
{
"problem_level": 20,
"bug_group_total_nums": 174,
"proportion": "72.20",
"problem_level_name": "中"
},
{
"problem_level": 30,
"bug_group_total_nums": 39,
"proportion": "16.18",
"problem_level_name": "高"
},
{
"problem_level": 40,
"bug_group_total_nums": 17,
"proportion": "7.05",
"problem_level_name": "紧急"
}
],
//按归因统计
"problem_attribution_group_list": [
{
"problem_attribution": 100,
"bug_group_total_nums": 241, //Bug总数量
"proportion": "100.00", //占比(%)
"problem_attribution_name": "代码错误" //问题归因
}
],
//按解决时长统计
"start_end_group_list": [
{
"time_consuming": 0,
"time_consuming_unit": "0 天", //解决时长
"bug_group_total_nums": 217, //Bug总数量
"proportion": "100.00" //占比(%
}
]
},
"export_url": "http://local.yesdev.com/api/platform.php?s=Platform.Problem_Problem.getBugGroupCountExportData&access_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiIxYzAzYmM1YiIsImF1ZCI6InVzZXIiLCJzdWIiOiJHQ0tKIiwidWlkIjo1MywiaWF0IjoxNjIxODM3MDk4LCJleHAiOjE2MjQ0MjkwOTh9.ZR-PFZDtqvsyAUBWPW6kRLirWoLgXRWsl2lkLF2gQPg&"
},
"msg": ""
}
错误列表
错误状态码 | 错误描述信息 |
---|---|
400 | ret=400,客户端参数错误或非法请求 |
404 | 表示接口服务不存在 |
406 | ret=406,access_token令牌校验不通过 |
407 | ret=407,app_key权限不足,或未知应用 |
408 | ret=408,当前用户禁止使用,或用户未登录 |
410 | 权限不足 |
500 | 表示服务端内部错误 |
本文档生成时间:2025-01-15 15:17:24 联系我们开通接入OpenAPI