Feature #44129
openAllow relative default values for date format custom fields
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
Updated by Go MAEDA about 18 hours ago
- Related to Feature #25035: Option to set current date as a default value of date format custom field added