Timer
A running stopwatch: one row per employee per timed record, created when the timer starts and deleted when it is discarded or its minutes are booked.
- Summary view
- TimerList, 10 fields. What a list returns by default.
- Detail view
- Timer, 10 fields. The default for a single read and for every write.
- Read with
- api:
read: andhours::hours read - Write with
- api:
write: hours
There is at most one timer per employee-and-target pair. started_at is the only state a timer carries: elapsed time is derived from it by the client, which needs no server clock. A timer on a record type this API does not publish (an Outlook event, which the agenda really does time) renders timeable as the bare {"id": N} reference form, with timeable_type intact and no expansion available.
Used by
Fields
- Detail only
- Only in the detail view.
- Only with include
- Only when you ask for it with include.
- Server-assigned
- Set by plnnrly, never by a request.
Employee this timer belongs to. Always the authenticated user; a timer cannot be started for someone else.
The employee this timer belongs to. Expanding it with ?include=user additionally requires the users::read permission and a token scope covering the users prefix.
The kind of record timeable points at; it says which branch of timeable applies.
work_itemevent
New values may be added.
The record being timed. Expanding it with ?include=timeable additionally requires the read permission and token scope of the target's own prefix, per branch: project_management for a work item, events for a planning event.
Which form you get depends on timeable_type.
work_itemWorkItemSummaryeventEventSummary
When the stopwatch was started. Elapsed time is this value against the client's own clock; the API publishes no elapsed counter.
Variants
TimerList 10 fields
What a collection returns, and what ?view=summary returns on a single record.
The same fields as the detail object.
TimerSummary 2 fields
The embedded form: what you get when another resource carries this one and you did not include it.
Leaves out: user_id, user, timeable_type, timeable_id, timeable, created_at, updated_at, links
TimerLinks 1 field
The links object on this resource.
Keys: self
Polymorphic fields
timeableWhich form you get depends on timeable_type.Something wrong or missing on this page? Tell us