POST  /products/:id/linkBugs
 
Link the bugs to the product plan
Request Body
| Name | Type | Required or Optional | Description | 
|---|---|---|---|
| bugs | array | required | linked bug id, e.g. [1, 2] | 
Request Example
{
    "bugs": [7]
} 
Request Response
| Name | Type | Required or Optional | Description | 
|---|---|---|---|
| id | int | required | plan id | 
| product | int | required | belong to which product | 
| branch | int | required | belong to which branch | 
| parent | int | required | parent plan | 
| title | string | required | plan name | 
| desc | string | required | description of plan | 
| begin | date | required | planned begin date | 
| end | date | required | planned end date | 
| stories | array | required | related requirements | 
| ∟ id | int | required | requirement id | 
| ∟ title | string | required | requirement name | 
| ∟ product | int | required | belong to which product | 
| ∟ branch | int | required | belong to which branch | 
| ∟ category | string | required | requirement type (feature|interface|performance|safe|experience|improve|other) | 
| ∟ pri | int | required | requirements priority | 
| bugs | array | required | related bugs | 
| ∟ id | int | required | bug id | 
| ∟ product | int | required | product id | 
| ∟ branch | int | required | belong to which branch | 
| ∟ module | int | required | belong to which module | 
| ∟ execution | int | required | belong to which execution | 
| ∟ story | int | required | related requirements | 
| ∟ title | string | required | bug name | 
| ∟ severity | int | required | degree of severity | 
| ∟ pri | int | required | bugs priority | 
| ∟ type | string | required | bug type | 
| ∟ steps | string | required | bug reproduction steps | 
| ∟ status | string | required | bug status (active|resolved|closed) | 
Response Example
{
    "id": 4,
    "product": 4,
    "branch": 2,
    "parent": 0,
    "title": "branch2plan",
    "desc": "",
    "begin": "2021-11-30",
    "end": "2021-12-06",
    "order": "",
    "deleted": false,
    "stories": [],
    "bugs": [
        {
            "id": 7,
            "project": 0,
            "product": 4,
            "branch": 0,
            "module": 0,
            "execution": 0,
            "plan": 4,
            "story": 0,
            "storyVersion": 1,
            "task": 0,
            "toTask": 0,
            "toStory": 0,
            "title": "Bug1",
            "keywords": "",
            "severity": 3,
            "pri": 3,
            "type": "codeerror",
            "os": "",
            "browser": "",
            "hardware": "",
            "found": "",
            "steps": "<p>[steps]</p>\n<br />\n<p>[results]</p>\n<br />\n<p>[expectations]</p>\n<br />",
            "status": "active",
            "subStatus": "",
            "color": "",
            "confirmed": 0,
            "activatedCount": 0,
            "activatedDate": "0000-00-00 00:00:00",
            "mailto": "",
            "openedBy": "admin",
            "openedDate": "2021-12-01 09:25:23",
            "openedBuild": "trunk",
            "assignedTo": "",
            "assignedDate": "0000-00-00 00:00:00",
            "deadline": "0000-00-00",
            "resolvedBy": "",
            "resolution": "",
            "resolvedBuild": "",
            "resolvedDate": "0000-00-00 00:00:00",
            "closedBy": "",
            "closedDate": "0000-00-00 00:00:00",
            "duplicateBug": 0,
            "linkBug": "",
            "case": 0,
            "caseVersion": 0,
            "result": 0,
            "repo": 0,
            "entry": "",
            "lines": "",
            "v1": "",
            "v2": "",
            "repoType": "",
            "testtask": 0,
            "lastEditedBy": "",
            "lastEditedDate": "0000-00-00 00:00:00",
            "deleted": "0"
        }
    ]
}