* daysBlocked feature added
* blocked worklog entries are not counted towards spike spent time
This commit is contained in:
@@ -117,6 +117,11 @@ class KanbanEntry implements \JsonSerializable
|
||||
*/
|
||||
private $worklog = 0;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $daysBlocked = 0;
|
||||
|
||||
/**
|
||||
* KanbanEntry constructor.
|
||||
*/
|
||||
@@ -509,6 +514,24 @@ class KanbanEntry implements \JsonSerializable
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getDaysBlocked(): int
|
||||
{
|
||||
return $this->daysBlocked;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $daysBlocked
|
||||
* @return KanbanEntry
|
||||
*/
|
||||
public function setDaysBlocked(int $daysBlocked): KanbanEntry
|
||||
{
|
||||
$this->daysBlocked = $daysBlocked;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
@@ -535,6 +558,7 @@ class KanbanEntry implements \JsonSerializable
|
||||
'team' => $this->getTeam(),
|
||||
'answerCode' => $this->getAnswerCode(),
|
||||
'worklog' => $this->getWorklog(),
|
||||
'daysBlocked' => $this->getDaysBlocked(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user