* Fromfeedback and fromticket convert to opened.

This commit is contained in:
宋辰轩
2022-12-27 15:39:20 +08:00
parent 3141fb89f3
commit 5d5bec97db
3 changed files with 9 additions and 2 deletions
+5
View File
@@ -50,6 +50,11 @@ $config->report->annualData['radar']['case']['run'] = array('qa');
$config->report->annualData['radar']['testtask']['create'] = array('qa');
$config->report->annualData['radar']['testtask']['edit'] = array('qa');
$config->report->annualData['monthAction']['story'] = array('opened', 'activated', 'closed', 'changed', 'fromfeedback', 'fromticket');
$config->report->annualData['monthAction']['task'] = array('opened', 'started', 'finished', 'paused', 'activated', 'canceled', 'closed', 'fromfeedback');
$config->report->annualData['monthAction']['bug'] = array('opened', 'bugconfirmed', 'activated', 'resolved', 'closed', 'fromfeedback', 'fromticket');
$config->report->annualData['monthAction']['case'] = array('opened', 'run', 'createBug');
$config->report->annualData['month']['story'] = array('opened' => 'create', 'activated' => 'activate', 'closed' => 'close', 'changed' => 'change');
$config->report->annualData['month']['task'] = array('opened' => 'create', 'started' => 'start', 'finished' => 'finish', 'paused' => 'pause', 'activated' => 'activate', 'canceled' => 'cancel', 'closed' => 'close');
$config->report->annualData['month']['bug'] = array('opened' => 'create', 'bugconfirmed' => 'confirm', 'activated' => 'activate', 'resolved' => 'resolve', 'closed' => 'close');
+3 -1
View File
@@ -946,7 +946,7 @@ class reportModel extends model
->where('t1.objectType')->eq($objectType)
->andWhere('t2.deleted')->eq(0)
->andWhere('LEFT(t1.date, 4)')->eq($year)
->andWhere('t1.action')->in(array_keys($this->config->report->annualData['month'][$objectType]))
->andWhere('t1.action')->in($this->config->report->annualData['monthAction'][$objectType])
->beginIF($accounts)->andWhere('t1.actor')->in($accounts)->fi()
->query();
@@ -958,6 +958,8 @@ class reportModel extends model
$statuses[$action->objectID] = $action->status;
$lowerAction = strtolower($action->action);
/* Story,bug can from feedback and ticket, task can from feedback, boil this action down to opened. */
if(in_array($lowerAction, array('fromfeedback', 'fromticket'))) $lowerAction = 'opened';
if(!isset($actionStat[$lowerAction]))
{
foreach($months as $month) $actionStat[$lowerAction][$month] = 0;
+1 -1
View File
@@ -322,7 +322,7 @@ $(function()
controlStyle: {
itemSize: 18,
},
},
tooltip: {},
series: [{