Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

timestamp in a ticket

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


roger.oberholtzer at gmail

Oct 26, 2009, 6:26 AM

Post #1 of 4 (474 views)
Permalink
timestamp in a ticket

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



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---


yoheeb at gmail

Oct 27, 2009, 11:10 AM

Post #2 of 4 (449 views)
Permalink
Re: timestamp in a ticket [In reply to]

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
-~----------~----~----~----~------~----~------~--~---


ryano at physiosonics

Oct 27, 2009, 1:08 PM

Post #3 of 4 (455 views)
Permalink
Re: timestamp in a ticket [In reply to]

On Oct 26, 6: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?

The sorting issue can be handled by storing the date as a datenumber
(time elapsed since date x) and transforming it to human readable
before displaying in the ticket.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---


roger.oberholtzer at gmail

Oct 28, 2009, 7:53 AM

Post #4 of 4 (456 views)
Permalink
Re: timestamp in a ticket [In reply to]

On Tue, 2009-10-27 at 11:10 -0700, yoheeb wrote:

I found the TracDatePlugin. Here you get a pop-up calendar. So dates are
not entered by hand, although they can be as it uses a text field.

The only problem I have seem with this plugin is that if the date is
incorrectly formatted, it prints a warning at the top of the ticket when
it is submitted. However, it seems that the ticket changes are not kept.
I lost a bit of ticket maintenance time before I saw that was the case.

As to the date+offset, I will look into the TicketGuidelines plugin,
which I have not come across before. There are so many!

--
Roger Oberholtzer


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.