Confirm Bug Resolution

2020-03-24 11:01:31
John Ten
3013
Last edited by Taotao on 2020-03-25 15:28:56
Share links
Summary : Request this method to confirm that a bug has been resolved, and to bind it with information about its resolution, build, date, etc.

Method Description

Request this method to confirm that a bug has been resolved, and to bind it with information about the solution, build, date, etc.

Notes 1: If you want to add linked builds, you should add three extra parameter, e.g. 'buildProject' => 1, 'buildName' => '7.2.4', and createBuild' => 1, which means the project, the build, and the creation.
2. If the resolution is【Duplicated Bug】, enter the duplicated bug ID and extra parameters, e.g. 'duplicateBug' => 5 means the bug ID=5Bug  is duplicated.

Example
public function addBugResolve()
{
    include_once('../vendor/zentao/zentao.php');
    $zentao = new \zentao();
    $params = array(
        'bugID'         => 9,
        'resolution'    => 'duplicate',
        'resolvedBuild' => '2',
        'resolvedDate'  => '2019-11-22',
        'assignedTo'    => 'lisi',
        'comment'       => 'Resolved bug comment',
        'buildProject'  => 1,
        'buildName'     => '7.2.5',
        'createBuild'   => 1,
        'duplicateBug'  => 2
    );    // request parameteres
    $result = $zentao->addBugResolve($params);
    return $result;
}

Request
POST
Method

addBugResolve

Parameter
Name
Type
Required
Description
bugID
int Required Bug ID
resolution
string
Required
Resolution【bydesign|duplicateBug|external|fixed|notrepro|postponed|willnotfix】
resolvedBuild
string
Optional
Resolution【Check Note 1 if its build info is requried】
resolvedDate
string
Optional
Resolved Date【format: 2019-11-11】
assignedTo
string
Optional
Assignee【username】
comment
string
Optional
Comment
buildProject int Optional
Linked project ID of the build added
buildName string Optional
Build name added

createBuild

int
Optional
Wheter to create【1=yes, 0=no】

duplicateBug

int
Optional
Duplicated Bug ID
Result
success error
{
    "status": 1,
    "msg": "success",
    "result": []
}
{
    "status": 0,
    "msg": "error",
    "result": []
}


Write a Comment
Comment will be posted after it is reviewed.