Feature #25035

Option to set current date as a default value of date format custom field

Added by Go MAEDA almost 3 years ago. Updated 5 months ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Custom fields
Target version:Candidate for next minor release
Resolution:

Description

It would be very useful if we can set current date to a date format custom field when we create a new issue.

Related forum post: Create a Custom Field that defaults to the Current Date

cf-current-date.png (35.3 KB) Go MAEDA, 2017-02-08 14:57

add_current_date.patch Magnifier (4.26 KB) Mizuki ISHIKAWA, 2018-08-30 09:42


Related issues

Related to Redmine - Feature #20382: Date Custom Field Defaut Value New

History

#1 Updated by Go MAEDA almost 3 years ago

#2 Updated by Mizuki ISHIKAWA about 1 year ago

I wrote a patch to realize this feature.

Implementation for setting the default value to current date may not be the best way.
Feedback is welcome.

#3 Updated by Go MAEDA about 1 year ago

  • Target version set to Candidate for next minor release

Thank you for sharing the patch. The patch looks fine.

#4 Updated by Go MAEDA about 1 year ago

  • Target version changed from Candidate for next minor release to 4.1.0

What do you all think about this patch? Feedbacks welcome.

#5 Updated by Jean-Philippe Lang 5 months ago

  • Target version changed from 4.1.0 to Candidate for next minor release

Mizuki ISHIKAWA wrote:

I wrote a patch to realize this feature.

Implementation for setting the default value to current date may not be the best way.
Feedback is welcome.

Thanks for your patch. It's a usefull feature but this patch has the side effect that it makes the string "current_date" a valid value for date custom fields. I think we need a different approach.

Also available in: Atom PDF