- 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
Report Bug
- 2020-03-24 11:00:29
- John Ten
- 3822
- Last edited by Taotao on 2020-03-25 11:37:09
- Share links
| Method Description |
Request this method to add the relevant information, such as the product, project, priority, and assignee when adding a bug. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Example |
public function addBug()
{
include_once('../vendor/zentao/zentao.php');
$zentao = new \zentao();
$params = array(
'product' => 1,
'module' => 2,
'project' => 1,
'openedBuild' => array('trunk', 3, 2),
'assignedTo' => 'lisi',
'deadline' => '2019-11-21',
'type' => 'codeerror',
'os' => 'windows',
'browser' => 'ie11',
'title' => 'Add test 4 for bugs',
'color' => '#2dbdb2',
'severity' => 2,
'pri' => 1,
'steps' => 'Repro steps to describe test 4 for bugs',
'story' => 0,
'task' => 0,
'mailto' => array('lisi', 'Zhang San'),
'keywords' => 'bug4'
); // request parameteres
$result = $zentao->addBug($params);
return $result;
}
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Request |
POST | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Method |
addBug |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Parameter |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Result |
success | error | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"status": 1,
"msg": "success",
"result": "Saved"
}
|
{
"status": 0,
"msg": "error",
"result": {
"title": [
"『Bug Title』 should not be empty."
]
}
}
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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]