Get Project Optional Information

2020-03-24 10:45:43
John Ten
2665
Last edited by Taotao on 2020-03-24 20:09:24
Share links
Summary : 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.
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
Name Type Required Description
N/A


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
Comment will be posted after it is reviewed.