Optional information for adding a single project
- 2022-12-21 10:24:41
- Kelsea
- 1085
- Last edited by xushenjie on 2022-12-30 18:57:33
- Share links
Method Description |
Request this method to get the list information of active products, which is used to be linked to the product when adding a project, so the project is linked to stories of the product. A list of privilege groups can also be obtained for the access control of the project. |
|||||||||
Example |
public function getProjectCreateParams() { include_once('../vendor/zentao/zentao.php'); $zentao = new \zentao(); $extraFields = array('title', 'projects', 'groups', 'allProducts'); $result = $zentao->getProjectCreateParams(array(), $extraFields); // customize fields return $result; } |
|||||||||
Request | GET | |||||||||
Method |
getProjectCreateParams |
|||||||||
Parameter |
|
|||||||||
Result |
success | error | ||||||||
{ "status": 1, "msg": "success", "result": { // the navbar of ZenTao "title": "Add Project", // the list of project added "projects": { "1": "ZenTao PHP-SDK Dev", "2": "Taobao Project Dev", "3": "Tmall Project Dev", "_empty_": "" }, // a list of privilege groups "groups": { "1": "Admin", "2": "Dev", "3": "QA", "4": "PM", "5": "PO", "6": "Dev Director", "7": "Product Director", "8": "QA Director", "9": "Senior Manager", "10": "Other", "11": "guest", "12": "limited user" }, // a list of products that can be linked "allProducts": { "0": "", "1": "ZenTao-PHP-SDK", "2": "Product B", "4": "Product C", "5": "Product D", "6": "Product E", "9": "Product X" } } } |
{ "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: support@zentaoalm.com