Project

General

Profile

Actions

Feature #44129

open

Allow relative default values for date format custom fields

Added by Go MAEDA about 19 hours ago. Updated about 19 hours ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Custom fields
Target version:
-
Resolution:

Description

Currently, date format custom fields can only use a fixed date as their default value.

This patch adds support for relative default values. In addition to specifying a fixed date, administrators can configure a date offset that is evaluated relative to the current user's date when a new object is created.

This makes date custom fields more useful for common workflows such as:

  • Today
  • One week from today
  • Three days before today

For example, an issue custom field named "Response deadline" can be configured with a default offset of 7. When a user creates a new issue on May 1, the field is pre-filled with May 8.

An offset of 0 represents today, while negative values can be used for dates before today.

Absolute mode
The custom field is initialized with the configured fixed date. This is the same behavior as the current default value setting.

Relative mode
The custom field is initialized with a date calculated from the configured offset relative to the current user's date.


Files


Related issues

Related to Redmine - Feature #25035: Option to set current date as a default value of date format custom fieldNewActions
Actions

Also available in: Atom PDF