POST /productplans/:id/linkstories
Link the stories to the product plan
Request Headers
Name | Type | Required or Optional | Description |
---|---|---|---|
token | string | required | Access Credentials Token |
Request Body
Name | Type | Required or Optional | Description |
---|---|---|---|
stories | array | optional | add a related requirement, e.g. [1, 2] |
Request Example
{
"stories": [ 11 ]
}
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 | assay | 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": [
{
"story": 11,
"plan": "4",
"order": 1,
"id": 11,
"parent": 0,
"product": 4,
"branch": 2,
"module": 22,
"source": "",
"sourceNote": "",
"fromBug": 0,
"title": "branch2requirements",
"keywords": "",
"type": "story",
"category": "feature",
"pri": 3,
"estimate": 0,
"status": "active",
"subStatus": "",
"color": "",
"stage": "planned",
"stagedBy": "",
"mailto": "",
"openedBy": "admin",
"openedDate": "2021-11-23 15:37:37",
"assignedTo": "",
"assignedDate": "0000-00-00 00:00:00",
"lastEditedBy": "",
"lastEditedDate": "0000-00-00 00:00:00",
"reviewedBy": "",
"reviewedDate": "0000-00-00 00:00:00",
"closedBy": "",
"closedDate": "0000-00-00 00:00:00",
"closedReason": "",
"toBug": 0,
"childStories": "",
"linkStories": "",
"duplicateStory": 0,
"version": 1,
"URChanged": "0",
"deleted": "0"
}
],
"bugs": []
}