HTTP/HTTPS
Protocol
YesDev / Platform API / 添加问题
添加问题
API Url:http://test.www.yesdev.cn/api/platform.php?s=Platform.Problem_Problem.AddProblem
API Description: 添加问题
API Parameters
| Parameter Name | Type | Is Required | Default | Note | Description |
|---|---|---|---|---|---|
| access_token | 字符串 | Optional | 访问令牌,仅当开启签名验证时需要传递,生成令牌可使用App.Auth.ApplyToken接口 | ||
| app_key | 字符串 | Optional | app_key,团队代码 | ||
| sign | 字符串 | Optional | - | 动态签名,签名算法请联系我们技术客服获取 | |
| problem_title | 字符串 | Required | - | max: 255 | 问题标题 |
| problem_content | 字符串 | Required | - | 问题内容 | |
| problem_type | 整型 | Optional | 1 | 问题类型 1Bug 2优化 3设计 4需求 5故障 6工单 7咨询 | |
| problem_attribution | 整型 | Optional | 100 | 问题归因 100 代码错误 200 数据问题 300 遗留问题 400 功能遗漏 500 需求误解 600 产品设计缺陷 700 无法重现 800 误报 900 其他 | |
| problem_level | 整型 | Required | 20 | 问题级别 10低 20中 30高 40紧急 | |
| product_category_id | 整型 | Optional | 0 | 产品线id | |
| product_category_version_id | 整型 | Optional | 0 | 产品品线版本id | |
| file_ids | 字符串 | Optional | - | 附件ids 多个文件用,号隔开 | |
| assign_staff_id | 整型 | Optional | 0 | 指派给谁 | |
| is_follow | 整型 | Optional | 0 | 是否抄送 | |
| project_id | 整型 | Optional | 0 | 项目id | |
| need_id | 整型 | Optional | 0 | 需求id | |
| test_plan_id | 整型 | Optional | 0 | 测试计划id | |
| test_plan_case_id | 整型 | Optional | 0 | 测试用例计划用例id | |
| not_send_email | 整型 | Optional | 0 | 不发送邮件 | |
| from_channel | 字符串 | Optional | 来源 | ||
| follow_staff_id | 字符串 | Optional | - | 抄送给的员工id,多个以英文逗号隔开 | |
| sop_id | 字符串 | Optional | - | SOPid | |
| label_ids | 数组seperated by , | Optional | 标签ids 逗号分隔 | ||
| custom_field_value | 数组json | Optional | - | 需求自定义字段,格式:{"系统KEY":"值","_CFKEY_1":"xxx"} | |
| is_auto_task | 布尔型 | Optional | false | 是否同步创建任务 |
Return Field
| Response Result | Type | Description |
|---|---|---|
| ret | int | status code, 200 is ok, 4xx is bad request, 5xx is server inside error |
| data | object/mixed | business data, decided by API implementation |
| msg | string | message, usually error message |
Test Online
| Parameter | Is Required | Value |
|---|---|---|
| service | Required | |
| access_token | Optional | |
| app_key | Optional | |
| sign | Optional | |
| problem_title | Required | |
| problem_content | Required | |
| problem_type | Optional | |
| problem_attribution | Optional | |
| problem_level | Required | |
| product_category_id | Optional | |
| product_category_version_id | Optional | |
| file_ids | Optional | |
| assign_staff_id | Optional | |
| is_follow | Optional | |
| project_id | Optional | |
| need_id | Optional | |
| test_plan_id | Optional | |
| test_plan_case_id | Optional | |
| not_send_email | Optional | |
| from_channel | Optional | |
| follow_staff_id | Optional | |
| sop_id | Optional | |
| label_ids | Optional | |
| custom_field_value | Optional | |
| is_auto_task | Optional |
Client Request Demo
# 暂无示例,可添加示例文件:./src/view/docs/demos/Platform.Problem_Problem.AddProblem.jsonError List
| Error Status | Error Description |
|---|---|
| 400 | ret=400,客户端参数错误或非法请求 |
| 404 | 表示接口服务不存在 |
| 406 | ret=406,access_token令牌校验不通过 |
| 407 | ret=407,app_key权限不足,或未知应用 |
| 408 | ret=408,当前用户禁止使用,或用户未登录 |
| 410 | 权限不足 |
| 500 | 表示服务端内部错误 |
Last generated at: 2026-05-31 08:17:11 联系我们开通接入OpenAPI