- 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
Add Product Optional Information
- 2020-03-24 10:44:46
- John Ten
- 3122
- Last edited by Taotao on 2020-03-24 16:49:55
- Share links
Method Description |
By requesting this method, you can the data required, such as product line data list, product owner and other data, when adding a product, and you can bind this information to it. |
|||||||||
Example |
public function getProductCreateParams() { include_once('../vendor/zentao/zentao.php'); $zentao = new \zentao(); $extraFields = array('title', 'products', 'lines', 'poUsers', 'qdUsers', 'rdUsers', 'groups'); // customize fields returned $result = $zentao->getProductCreateParams(array(), $extraFields); return $result; } |
|||||||||
Request |
GET | |||||||||
Method |
getProductCreateParams |
|||||||||
Parameter |
|
|||||||||
Result |
success | error | ||||||||
{ "status": 1, "msg": "success", "result": { // the navbar of ZenTao "title": "Add Product", // the list of the products added "products": { "1": "ZenTao-PHP-SDK", "2": "Product B", "3": "Product C", "4": "Product D", "5": "Product E", "6": "Product F" }, // a list of products "lines": { "0": "", "5": "Product A", "6": "Product B", "7": "Product C" }, // a list of product owners "poUsers": { "_empty_": "", "zhangsan": "Z: Zhang San", "admin": "A:admin", "lisi": "L: Li Si", "niuqi": "N: Niu Qi", "wangwu": "W: Wang Wu", "zhapliu": "Z: Zhao Liu" }, // a list of of QA managers "qdUsers": { "_empty_": "", "zhapliu": "Z: Zhao Liu", "admin": "A:admin", "lisi": "L: Li Si", "niuqi": "N: Niu Qi", "wangwu": "W: Wang Wu", "zhangsan": "Z: Zhang San" }, // a list of release managers "rdUsers": { "_empty_": "", "wangwu": "W: Wang Wu", "zhapliu": "Z: Zhao Liu", "lisi": "L: Li Si", "admin": "A:admin", "niuqi": "N: Niu Qi", "zhangsan": "Z: Zhang San" }, // a whitelist "groups": { "1": "Admin", "2": "Dev", "3": "QA", "4": "PM", "5": "PO", "6": "Dev Manager", "7": "Product Director", "8": "QA Director", "9": "Senior Manager", "10": "Other", "11": "guest", "12": "limited user" } } } |
{ "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]