
yoheeb at gmail
Oct 27, 2009, 11:10 AM
Post #2 of 4
(449 views)
Permalink
|
On Oct 26, 8:26 am, Roger Oberholtzer <roger.oberholt...@gmail.com> wrote: > I have had a request to add a date variable to tickets. I can make it a > simple text field. However, this makes it awkward to use as a sort key. > Is there a better way to add a date to a ticket? Especially if one use > is sorting? > > In addition, it would be great if the date could default to, say, today > + 2 weeks. I see a DateOffset macro, but it uses a fixed date. I guess I > could hack the DateOffset to use the current date. But the question > problem is how do I initialize the date field with the result of the > macro? I am guessing this has been answered a zillion times. Is this > described in the Trac docs? > > -- > -- > Roger Oberholtzer not sure on your automatic +2weeks, but you could look at either DateTimeField plugin and/or CalendarPopupPlugin. I bet it would be easy to modify the CalendarPopupPlugin to default to "today" + 2 weeks instead of "today", although, it makes it easy, so you might not bother, maybe just use the TicketGuidelines plugin to tell people to pick today +2weeks (could get fancy and instruct them to use different offsets based on your criteria) I know, I'm lazy, it works for me --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users [at] googlegroups To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
|