*Kanban view data.

This commit is contained in:
songchenxuan
2022-03-08 15:42:06 +08:00
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ class bugsEntry extends entry
if(!$productID and isset($this->requestBody->product)) $productID = $this->requestBody->product;
if(!$productID) return $this->sendError(400, 'Need product id.');
$fields = 'title,project,execution,openedBuild,assignedTo,pri,severity,type,story';
$fields = 'title,project,execution,openedBuild,assignedTo,pri,severity,type,story,task';
$this->batchSetPost($fields);
$this->setPost('product', $productID);
+1
View File
@@ -34,6 +34,7 @@ class executionStoriesEntry extends entry
$result = array();
foreach($stories as $story)
{
$story->name =$story->title;
$result[] = $this->format($story, 'openedBy:user,openedDate:time,assignedTo:user,assignedDate:time,reviewedBy:user,reviewedDate:time,lastEditedBy:user,lastEditedDate:time,closedBy:user,closedDate:time,deleted:bool,mailto:userList');
}
return $this->send(200, array('page' => $pager->pageID, 'total' => $pager->recTotal, 'limit' => $pager->recPerPage, 'stories' => $result));