プロジェクト

全般

プロフィール

Vote #73222

完了

Subtasks don't resepect following/precedes

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

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

0%

予定工数:
category_id:
40
version_id:
60
issue_org_id:
12968
author_id:
71040
assigned_to_id:
1
comments:
6
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

In the current development version, there is a bug
Imagine following scenario:
There are 2 tasks: "Issue1" and "Issue2", and "Issue2" follows "Issue 1" by x days. This works fine. But if I add an subtask to "Issue2" the startdate is not correctly set to Issue1.enddate + x, instead it is possible to set any date you want, without respecting the Issue Relation.

Furthermore, it is possible to set a relation so the subtask precedes "Issue 1", which creates a circular dependency.


journals

I encountered some error which seems to relates to the same problem.

For example:
- Task A
-- Task A1
-- Task A2
- Task B
-- Task B1
-- Task B2
- Task C

Task C follows A, Task B1 follows C, Task B2 follows B1

If I set some follow or precede on subtask, where the parent task already has precedes or follows relations, these relations will be automatically removed without any warning or errormessage. I encountered this several times.
--------------------------------------------------------------------------------
This should be rechecked before 2.3 release.

Can anyone still confirm this?
--------------------------------------------------------------------------------
I have rewritten the all_dependent_issues function in the issue model, which should eliminate the problem with circular dependency. But i'm not sure how to contribute it.
--------------------------------------------------------------------------------
Hi,

Maybe your firm with tortoise. Just generate a diff with your changes.

If not, just upload a file with the corresponding function.

Maybe toshi or jean-Philippe can review this and apply the changes to the core.

This way it could be fixed before Redmine 2.3 will be released.
--------------------------------------------------------------------------------
Moe H wrote:
> In the current development version, there is a bug
> Imagine following scenario:
> There are 2 tasks: "Issue1" and "Issue2", and "Issue2" follows "Issue 1" by x days. This works fine. But if I add an subtask to "Issue2" the startdate is not correctly set to Issue1.enddate + x, instead it is possible to set any date you want, without respecting the Issue Relation.

Fixed in r11640.

> Furthermore, it is possible to set a relation so the subtask precedes "Issue 1", which creates a circular dependency.

Fixed as part of #8794.

Thanks for pointing this out.
--------------------------------------------------------------------------------
Merged.
--------------------------------------------------------------------------------

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

  • カテゴリIssues planning_40 にセット
  • 対象バージョン2.3.0_60 にセット

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

いいね!0
いいね!0