プロジェクト

全般

プロフィール

Vote #79219

未完了

Total estimated time value not visible when tracker has estimate time field disabled

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Issues_2
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
2
version_id:
32
issue_org_id:
28409
author_id:
115781
assigned_to_id:
0
comments:
6
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
134
ステータス-->[New]

説明

There is a tracker that does have estimate time field disabled. The issue of that tracker can have subtasks of different trackers that do have estimated time. The estiamted time for the parent issue is not shown at all, it should show total estimated time, in brackets. This works fine for spend time.


journals

I agree with Sebastian Paluch. Here is a patch without tests.

<pre><code class="diff">
Index: app/views/issues/show.html.erb
===================================================================
--- app/views/issues/show.html.erb (revision 17253)
+++ app/views/issues/show.html.erb (working copy)
@@ -64,7 +64,7 @@
unless @issue.disabled_core_fields.include?('done_ratio')
rows.right l(:field_done_ratio), progress_bar(@issue.done_ratio, :legend => "#{@issue.done_ratio}%"), :class => 'progress'
end
- unless @issue.disabled_core_fields.include?('estimated_hours')
+ unless @issue.disabled_core_fields.include?('estimated_hours') && @issue.total_estimated_hours.blank?
rows.right l(:field_estimated_hours), issue_estimated_hours_details(@issue), :class => 'estimated-hours'
end
if User.current.allowed_to?(:view_time_entries, @project) && @issue.total_spent_hours > 0
</code></pre>

*Before:*
!{width: 756px;}.before@2x.png!

*After:*
!{width: 756px;}.after@2x.png!
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I've added the test-code for Go MAEDA's patch(#28409-1).
--------------------------------------------------------------------------------
Any chance to get this minor thing in soon?
--------------------------------------------------------------------------------
Setting the target version to 4.2.0.
--------------------------------------------------------------------------------
I found a problem in patch #28409#note-1.

Redmine shows estimated hours for a parent task in some cases even if estimated hours is disabled. You can reproduce the problem with the following steps:

1. Set any value to the estimated hours field of a parent task and subtask
2. Disable the estimated hours field for the tracker
3. Open the parent task. The value of the parent task's estimated hour should not be displayed because the field is disabled, but both the parent's estimated hours and total estimated hours are displayed
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリIssues_2 にセット
  • 対象バージョンCandidate for next major release_32 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0