プロジェクト

全般

プロフィール

Vote #76287

完了

Issue Estimated Time not updated on tracker change

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Issues_2
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
2
version_id:
94
issue_org_id:
19606
author_id:
123866
assigned_to_id:
1
comments:
6
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
92
ステータス-->[Closed]

説明

The problem occurs when the issue tracker is changed to another which does not have the estimated time field activated:

  • Create a main issue with a tracker which has the "Estimated time" field
  • Create a subtask with a tracker which has also the the "Estimated time" field and set it to X hours
  • Change the tracker of this subtask to another which does not have the the "Estimated time" field activated
  • Go to the parent task

Result: Estimated time on the parent task is still X hours

From my searches, I can see that the issue estimated time is not changed in DB. It won't change to null, but remain to X hours.


journals

I had a deeper look into the code, I think that the method to patch is
@tracker=(tracker)@ in app/models/tracker.rb where in case the new tracker does not have the Estimated Time field activated, we nullify the estimated time of the issue.
--------------------------------------------------------------------------------
I have put this simple patch to the method mentioned above.
This seems to resolve the problem so far
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
See the latest file
--------------------------------------------------------------------------------
Fixed in r14180, thanks for pointing this out.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリIssues_2 にセット
  • 対象バージョン3.0.2_94 にセット

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

いいね!0
いいね!0