View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0008481||mantisbt||custom fields||public||2007-10-18 15:43||2019-08-08 16:13|
|Priority||normal||Severity||feature||Reproducibility||have not tried|
|Target Version||Fixed in Version|
|Summary||0008481: default value for date type fields (variable)|
found the request (but no answer) in the forum and I'm interested in it too:
default value for custom fields of type "date" like "today()" or "today()+3"
|Tags||No tags attached.|
Sounds like a good idea. However, we need to specify a format that is easy for users to remember and easy to parse as well. The format should be parsed and processed, we should not eval() (i.e. execute a string as PHP). I am not saying you are referring to that, but I think it is useful to make it part of the feature requirements.
If we need to always add a date offset, then the default can be 0 for today, 7 for a week from today and -7 for last week.
Any thoughts relating to the format?
Just some more thoughts on it:
Will this be possible within the config-file or on the custom_fields' webpage?
thinking of values which are used in some software as shortcuts for quick date entries like
t for Today
Don't know if this is localizable to all countries?
maybe you could "count" with these letters too:
absolute numbers could be added
You also could think of these letters to be used not only for setting a default for the date fields but also to be usable by reporters:
At the moment the partitioning of date entry into three fields is little inconvenient (depends on what you are used to) - many other software is more tolerant to date entries (into one single field)
Even for accepting letter-coded entries as above a single field entry would be probably easier to come along with from the programmer's view AND from the user's (knowing where to enter the letter when there are not three fields).
PS: you could also use these letters for first of next month which would be:
1) step to last of actual month
combining letters shows the strength of the system
I have implemented yesterday, today and tomorrow default values ( http://deboutv.free.fr/mantis/plugin.php?plugin=LongCF )
I'm not sure that "tmhyr" idea is readable but I have nothing else to propose.
Just thought this would be interesting as well:
duplicate to 7643
|2007-10-18 15:43||pluntke||New Issue|
|2007-10-19 01:47||vboctor||Note Added: 0015894|
|2007-10-19 01:47||vboctor||Status||new => acknowledged|
|2007-10-19 02:17||pluntke||Note Added: 0015897|
|2007-10-19 02:27||pluntke||Note Added: 0015899|
|2007-10-19 02:50||deboutv||Note Added: 0015901|
|2007-10-19 02:50||deboutv||Note Edited: 0015901|
|2007-10-19 03:46||vboctor||Note Added: 0015905|
|2009-10-14 08:42||poooool||Note Added: 0023182|
|2019-08-08 16:13||atrol||Assigned To||=> atrol|
|2019-08-08 16:13||atrol||Status||acknowledged => resolved|
|2019-08-08 16:13||atrol||Resolution||open => duplicate|
|2019-08-08 16:13||atrol||Relationship added||duplicate of 0007634|