+ [task#145330] add the scale_of_verified_story_in_execution metric.

This commit is contained in:
wangzemei
2025-06-17 10:03:07 +08:00
parent e32abdc1d7
commit af1cee1c94
@@ -7,6 +7,15 @@ class scale_of_verified_story_in_execution extends baseCalc
public $result = 0;
public function calculate($row)
{
if($row->isParent == '1') return false;
if(empty($row->estimate)) return null;
if(in_array($row->stage, array('verified', 'delivering', 'delivered', 'released'))) $this->result += $row->estimate;
if($row->closedReason == 'done') $this->result += $row->estimate;
}
public function getResult($options = array())
{
$records = $this->getRecords(array('value'));