- 1. API
- 2 Configuration
- 3. Department
-
4. User
- 4.1 Get Parameters of Add User
- 4.2 Add User
- 4.3 Get User List
- 5. Product
- 6. Project
-
7. Task
- 7.1 Get Task List
- 7.2 Get Task Optional Information
- 7.3 Add Task
- 7.4 Finish Task Optional Information
- 7.5 Finish Task
- 8. Bug
Get Bug Optional Information
- 2020-03-24 10:59:47
- John Ten
- 3158
- Last edited by Taotao on 2020-03-25 10:47:46
- Share links
Method Description |
Request this method to get the relevant information when reporting a bug before linking it to the specified product. |
|||||||||
Example |
public function getBugCreateParams() { include_once('../vendor/zentao/zentao.php'); $zentao = new \zentao(); $params = array('productID' => 1); // request parameteres $extraFields = array('title', 'productID', 'productName', 'projects', 'moduleOptionMenu', 'users', 'stories', 'builds'); // customize fields $result = $zentao->getBugCreateParams($params, $extraFields); return $result; } |
|||||||||
Request |
GET | |||||||||
Method |
getBugCreateParams | |||||||||
Parameter |
|
|||||||||
Result |
success | error | ||||||||
{ "status": 1, "msg": "success", "result": { // the navbar of ZenTao "title": "ZenTao-PHP-SDK-Report Bug", // current product ID "productID": 1, // current product name "productName": "ZenTao-PHP-SDK", // a project list of the current product "projects": { "1": "ZenTao PHP-SDK", "_empty_": "" }, // a module list of the current product "moduleOptionMenu": [ "/", "/Design", "/Dev", "/Change", "/Test" ], // users that can be assigned "users": { "_empty_": "", "lisi": "L: Li Si", "wangwu": "W: Wang Wu", "zhapliu": "Z: Zhao Liu", "admin": "A:admin", "niuqi": "N: Niu Qi", "zhangsan": "Z: Zhang San" }, //stories of the current product "stories": { "1": "1: Confirm PHP-SDK stories and create PHP-SDK file (Priority:1, Estimates:4)", "2": "2: Develope ZenTao SDK API (Priority:1, Estimates:4)", "_empty_": "" }, // builds that are affected by the product "builds": { "trunk": "Trunk" } } } |
{ "status": 0, "msg": "error", "result": [] } |
Write a Comment
Support
- Book a Demo
- Tech Forum
- GitHub
- SourceForge
About Us
- Company
- Privacy Policy
- Term of Use
- Blogs
- Partners
Contact Us
- Leave a Message
- Email Us: [email protected]