Project

General

Profile

Actions

Feature #43895

open

Disable "Use current date as start date for new issues" by default for new installations

Added by Go MAEDA 2 months ago. Updated about 3 hours ago.

Status:
Reopened
Priority:
Normal
Assignee:
Category:
Issues
Target version:
Resolution:
Fixed

Description

Currently, the "Use current date as start date for new issues" setting is enabled by default, so a new issue gets today's date as its initial start date.

This is useful in some cases, such as bug fixing or support work, where the creation date and the actual start date are often the same.

However, Redmine is often used to plan and track work before it actually starts. In many such cases, the creation date and the actual start date are different. Using the creation date as the initial start date does not reflect the actual schedule, and can lead to misleading information in gantt charts and project tracking.

The attached patch changes this default for new installations. Existing installations keep the current behavior.


Files


Related issues

Related to Redmine - Feature #2269: Default issue start date should become configurable.ClosedActions
Actions #1

Updated by Go MAEDA 2 months ago

  • Related to Feature #2269: Default issue start date should become configurable. added
Actions #2

Updated by Go MAEDA 2 months ago

  • Target version set to Candidate for next major release
Actions #3

Updated by Go MAEDA 2 months ago

  • Target version changed from Candidate for next major release to 7.0.0

Setting the target version to 7.0.0.

Actions #4

Updated by Go MAEDA about 2 months ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch in r24564.

Actions #5

Updated by Go MAEDA about 3 hours ago

The change committed in r24564 does not work as expected: even in new installations, "Use current date as start date for new issues" is not disabled.

This is because the default value for Setting.default_issue_start_date_to_creation_date is not stored by an earlier migration for new installations. As a result, the migration source:trunk/db/migrate/20260320090000_ensure_default_issue_start_date_to_creation_date_is_stored_in_db.rb added in r24564 to preserve the setting value for existing installations always sets Setting.default_issue_start_date_to_creation_date to "1" even in new installations, because no record exists yet.

The attached patch fixes this by storing the new default value early for new installations, as is done for other settings whose default values were changed later.

Normally, this code would be added to source:trunk/db/migrate/017_create_settings.rb. However, at that point, settings.name is limited to 30 characters. Since default_issue_start_date_to_creation_date is longer than that, the code is added to source:trunk/db/migrate/20090318181151_extend_settings_name.rb, after the limit is increased.

Actions

Also available in: Atom PDF