Tracking time in Codebase allows you to keep track of how long you spend working on a specific project. This can be viewed on a daily, weekly, monthly or custom-range basis through the interface. Each project can contain an unlimited number of "time sessions". A time session itself is made up from some text describing what you did in the session and a number of minutes spent.
We support filtering with the following optional params:
userthe ID of the user
to- for time sessions that occurred to this date
fromfor time sessions that occurred from date
|All time session for a project
|Time sessions added today
|Time sessions added this week
|Time sessions added this month
|Creating a new session
|Show an existing session
|Update an existing session
|Delete a session
The XML output below shows the properties which are returned by default when accessing ticket details.
<summary>Worked on the awesome time tracking in Codebase</summary>
idthe unique ID for this session
summaryRequired details entered about this time session. Sessions entered through tickets or in commit messages will contain information on this space.
minutesRequired the number of whole minutes which should be recorded.
user-idthe ID of the user
ticket-idthe ticket number of an associated ticket (if present)
session-datethe date of the session took place. Should be entered in the format:
to- for time sessions that occurred to this date (optional)
fromfor time sessions that occurred from date (optional)
Creating a new time session
When adding a new time session, you should simply send the
minutes fields. The user ID will be set by default to you based on your API key, otherwise you can specify another user by passing a
user_id param. The
session-date will be set to today unless one is provided.