From af1cee1c94b262872172b778ca30c1e5af89756b Mon Sep 17 00:00:00 2001 From: wangzemei Date: Tue, 17 Jun 2025 10:03:07 +0800 Subject: [PATCH] + [task#145330] add the scale_of_verified_story_in_execution metric. --- .../scale/scale_of_verified_story_in_execution.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/module/metric/calc/execution/scale/scale_of_verified_story_in_execution.php b/module/metric/calc/execution/scale/scale_of_verified_story_in_execution.php index 6e9a14c39b..18d3e657a7 100755 --- a/module/metric/calc/execution/scale/scale_of_verified_story_in_execution.php +++ b/module/metric/calc/execution/scale/scale_of_verified_story_in_execution.php @@ -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'));