This commit is contained in:
tianshujie
2024-01-25 15:09:32 +08:00
parent ed4a8b420b
commit 0256e443dd
6 changed files with 20 additions and 6 deletions
+7
View File
@@ -53,6 +53,13 @@ $config->project->dtable->fieldList['PM']['sortType'] = true;
$config->project->dtable->fieldList['PM']['group'] = 3;
$config->project->dtable->fieldList['PM']['required'] = true;
$config->project->dtable->fieldList['storyPoints']['title'] = $lang->project->storyPoints;
$config->project->dtable->fieldList['storyPoints']['type'] = 'number';
$config->project->dtable->fieldList['storyPoints']['group'] = 4;
$config->project->dtable->fieldList['storyPoints']['show'] = true;
$config->project->dtable->fieldList['storyPoints']['width'] = '120px';
$config->project->dtable->fieldList['storyPoints']['sortType'] = false;
$config->project->dtable->fieldList['storyCount']['title'] = $lang->project->storyCount;
$config->project->dtable->fieldList['storyCount']['type'] = 'number';
$config->project->dtable->fieldList['storyCount']['group'] = 4;
+2 -1
View File
@@ -76,7 +76,8 @@ $lang->project->manageRepo = 'Manage Repo';
$lang->project->linkedRepo = 'Link Repo';
$lang->project->unlinkedRepo = 'Unlink Repo';
$lang->project->executionCount = 'Total Executions';
$lang->project->storyCount = 'Story Points';
$lang->project->storyCount = 'Story Count';
$lang->project->storyPoints = 'Story Points';
$lang->project->invested = 'Invested';
$lang->project->member = 'Member';
$lang->project->manage = 'Manage';
+2 -1
View File
@@ -76,7 +76,8 @@ $lang->project->manageRepo = 'Manage Repo';
$lang->project->linkedRepo = 'Link Repo';
$lang->project->unlinkedRepo = 'Unlink Repo';
$lang->project->executionCount = 'Total Executions';
$lang->project->storyCount = 'Story Points';
$lang->project->storyCount = 'Story Count';
$lang->project->storyPoints = 'Story Points';
$lang->project->invested = 'Invested';
$lang->project->member = 'Member';
$lang->project->manage = 'Manage';
+2 -1
View File
@@ -76,7 +76,8 @@ $lang->project->manageRepo = 'Manage Repo';
$lang->project->linkedRepo = 'Link Repo';
$lang->project->unlinkedRepo = 'Unlink Repo';
$lang->project->executionCount = 'Total Executions';
$lang->project->storyCount = 'Story Points';
$lang->project->storyCount = 'Story Count';
$lang->project->storyPoints = 'Story Points';
$lang->project->invested = 'Invested';
$lang->project->member = 'Member';
$lang->project->manage = 'Manage';
+2 -1
View File
@@ -77,7 +77,8 @@ $lang->project->manageRepo = '关联代码库';
$lang->project->linkedRepo = '已关联代码库';
$lang->project->unlinkedRepo = '未关联代码库';
$lang->project->executionCount = '执行数';
$lang->project->storyCount = '需求规模';
$lang->project->storyCount = '需求条目数';
$lang->project->storyPoints = '需求规模';
$lang->project->invested = '已投入';
$lang->project->member = '成员';
$lang->project->manage = '管理';
+5 -2
View File
@@ -1246,8 +1246,11 @@ class projectZen extends project
{
$project = $this->project->formatDataForList($project, $userList);
$projectStories = $this->story->getExecutionStoryPairs($project->id);
$project->storyCount = count($projectStories);
$projectStories = $this->story->getExecutionStories($project->id);
$project->storyCount = count($projectStories);
$project->storyPoints = 0;
foreach($projectStories as $story) $project->storyPoints += $story->estimate;
$project->storyPoints .= ' ' . $this->config->hourUnit;
$executions = $this->execution->getStatData($project->id, 'all', 0, 0, false, 'skipParent');
$project->executionCount = count($executions);