Scrum, Set color, Similar cards, Subtasks, Suggested members, Time tracking, Watch and Star, Whiteboard, Cover image, Locations and Stickers follow one structure. Corrected from the code: Filter: Subtasks is in the Subtasks heading's hamburger, the whiteboard keeps the drawing's own size, the card-field switches are in Admin Panel / Settings / Features, the map links follow the chosen provider of eleven, Time tracking describes the card's spent time and time by day, and Scrum now has native sprints. Thanks to xet7 !
6.7 KiB
Time Tracking
What it is
Time tracking records how much time has been spent on a card. Each card has a Spent time (hours) total, an optional estimate, an Overtime flag and a Time by day log of who logged how many hours on which day. The total is what the Time view, Workload and Billing read; the Flowtime and Pomodoro timers add to it. External time trackers such as Titra and calendars through iCal can be used with WeKan too.
Read more
- Wikipedia: Time-tracking software, Timesheet, Overtime and iCalendar.
- In WeKan: Flowtime and Pomodoro, Time view, Time and issue audit, Workload and Billing.
Titra
This was found 2020-05-20 at Time Tracking Wekan issue, thanks!
Titra Time Tracking, GPLv3
- titra.io (its old free-time-tracking-online page no longer answers)
- https://github.com/kromitgmbh/titra/
Wekan Integration:
iCal
https://github.com/wekan/wekan/issues/2836
https://github.com/wekan/wekan-ical-server
How to use it
Show the field on the board: Board sidebar (hamburger menu) → Board Settings → Card, row Spent time (hours): Show on Card and Show on Minicard.
Set the total, the estimate and the flags:
- Open the card. In the Time section, click the hamburger beside Spent time (hours) (Change spent time), or click the time badge.
- Enter Time in hours (decimals allowed, for example
1.5). - Optionally fill in Estimated hours, and tick Billable and Overtime.
- Click Save. Delete clears the time and the Overtime flag.
Log time on a day:
- In the same popup, under Time by day, pick the Date, enter the Hours and an optional Note.
- Click Log time. The entry is listed with who logged it; your own entry can be removed with the trash icon until it is approved or invoiced.
The badge turns red when Overtime is ticked, green otherwise; with an
estimate it reads like 1h30m / 4h.
How the numbers are calculated
- Spent time is stored in decimal hours (
spentTimein models/cards.js); a value below 0 is refused with Invalid time. - The badge shows it as a duration
(models/lib/spentTimeFormat.js):
the hours are rounded to whole seconds and split into days (24 h), hours,
minutes and seconds, leaving out zero units -
12h34m56s,1d2h,0s. Its tooltip says Spent Time or Overtime, with the hours rounded to two decimals. - Estimated hours: 0 to 10,000, in steps of 0.25 in the popup; what is left is the estimate less the time spent.
- Time by day (models/lib/timeEntries.js):
an entry is more than 0 and at most 1,000 hours, on a
YYYY-MM-DDdate, with a note of at most 500 characters; hours are rounded to four decimals. Logging adds the hours to the card's total and removing one takes them off again. Any other change of the total - the popup, a timer, the REST API, an import - is recorded as an entry of that day for the difference, and time spent before entries were kept becomes one undated entry, once. The list shows the newest 500 entries. - A linked card shows, and changes, the time of the card it links to.
How it works in WeKan
- Card fields
spentTime,estimatedHours,billableandisOvertimein models/cards.js, withgetSpentTime,setSpentTime,getIsOvertime,setIsOvertimeand the estimate and billable helpers. - The popup
editCardSpentTimePopup, the badgecardSpentTimeandcardTimeEntriesare in client/components/cards/cardTime.jade and cardTime.js; the Time section is in cardDetails.jade. - server/timeEntries.js - the methods
timeEntryAdd,timeEntryRemoveandtimeEntriesOfCard, and the hook that turns every other change ofspentTimeinto an entry. Who may change the card may log time on it; who may see it may read its entries; an entry on an invoice or approved is not removed. - REST:
spentTimeandisOverTime(the REST spelling, stored asisOvertime) on the card edit endpoint in server/models/cards.js. - Tests: tests/spentTimeFormat.test.cjs, tests/spentTimeCardSettings.test.cjs and tests/timeEntries.test.cjs.
Commits
- Time approval for billed hours
- Time by day: log hours on a day, and see who logged what
- Billable: whether a card's time goes on invoices
- Estimated hours beside the time spent
- An isOverTime stored through REST before the fix becomes isOvertime
- Spent time is shown as a duration, not decimal hours
- Fix REST card overtime persistence
- Change spent time in the Time section's hamburger
- Fix setting overtime
- Two-way binding of card and board times
- The spent time title says Overtime or Spent time
- Card spent time, which can be overtime or not