プロジェクト

全般

プロフィール

Vote #74357

完了

Calculation of the start date of following issues ignores the "non-working days" setting

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

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

0%

予定工数:
category_id:
2
version_id:
99
issue_org_id:
14846
author_id:
82765
assigned_to_id:
332
comments:
7
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I found following problem when set delay for one issue.
If the start date of the following issue is Saturday, the system will move the start date to next Monday automatically.
However, if the start date of the following issue is others (across the weekend), the system will not take non-working days into consideration.
Please check the following example.
Is it a bug or my setting issue?

  • Non-working in my system is Saturday and Sunday.
  • Issue A: 2013/09/02(Mon.)~2013/09/03(Tue.)
  • Set issue B follows issue A with N-days delay ** N=1, Issue B start date: 2013/09/05(Thu.) => Correct ** N=3, Issue B start date: 2013/09/09(Mon.) => Correct ** N=4, Issue B start date: 2013/09/09(Mon.) => Incorrect, SHOULD be 2013/09/10 ** N=6, Issue B start date: 2013/09/10(Tue.) => Incorrect, SHOULD be 2013/09/12

System information:

Environment:
  Redmine version                2.3.2.stable
  Ruby version                   1.9.3-p448 (2013-06-27) [x86_64-linux]
  Rails version                  3.2.13
  Environment                    production
  Database adapter               Mysql2
Redmine plugins:
  clipboard_image_paste          1.7
  redmine_projects_accordion     0.1.0
  redmine_tab                    0.4.0
  redmine_theme_changer          0.1.0
  redmine_watcher_groups         0.0.2git
  redmine_work_time              0.2.8
  timelog_timer                  2.0.0

journals

--------------------------------------------------------------------------------
One of our ("Planio":https://plan.io) customers noticed this bug too. We can confirm that the calculation of the start date of following issues does not take the "non-working days" setting into account.

The attached patch solves this and adds a test for this behavior.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I have updated the patch for the current trunk (r17212).

Setting target version to 4.0.0.
--------------------------------------------------------------------------------
Committed. Thank you for your contribution.
--------------------------------------------------------------------------------

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

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


related_issues

relates,Confirmed,29855,add_working_days returns wrong date

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

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

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

いいね!0
いいね!0