TimeEntry Object

Root Connection

All TimeEntry objects of an account are accessible by a query on the root connection timeEntries. Such a query will return a TimeEntryConnection!, which contains the TimeEntry objects in its nodes field.

timeEntries (TimeEntryConnection!)

Root connection for retrieving TimeEntry records.

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

filter TimeEntryFilter

Filter to determine which TimeEntry records are returned.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

order [TimeEntryOrder!]

Order of the TimeEntry records returned.

view TimeEntryView

View name.

The default value is current_account.

Fields

The fields in this section list which values can be retrieved when querying TimeEntry records.

account (Account)

The account this record belongs to.

assignment (HasTimeEntries)

The record in which the Time spent field was filled out to cause the time entry to be generated.

correction (Boolean)

Whether the time entry should be considered a correction for a time entry that was registered for a date that has already been locked.

cost (MonetaryAmount)

The cost of the time entry. It is calculated by multiplying the time spent by the cost per hour of the person who spent the time.

createdAt (ISO8601Timestamp)

The date and time at which the record was created.

customer (Organization)

The organization for which the time was spent.

date (ISO8601Date)

The date on which the time was spent.

deleted (Boolean)

Automatically checked after the time entry has been deleted. The data of a deleted time entry that is older than 3 months can no longer be retrieved.

description (String)

A short description of the time spent. This field is available and required only when the Description required box is checked in the selected time allocation.

effortClass (EffortClass)

The effort class that best reflects the type of effort for which time spent is being registered.

id (ID!)

Unique identifier of the object.

note (Note)

The note the time entry is linked to.

organization (Organization)

The organization to which the person was linked when the time entry was created.

person (Person)

The person who spent the time.

service (Service)

The service for which the time was spent.

source (String)

An identifier for the client application submitting the resource or the name of an external system

sourceID (String)

The unique identifier of the resource in an external system

team (Team)

Team the person of the time entry was a member of while the work was performed.

timeAllocation (TimeAllocation)

The time allocation on which the time was spent. Only the time allocations that are linked to the person’s organization can be selected.

timeSpent (Int)

The number of minutes that was spent on the selected time allocation. The number of minutes is allowed to be negative only when the correction field is set to true.

updatedAt (ISO8601Timestamp)

The date and time of the last update of the record. If the record has no updates it contains the createdAt value.

Implements

TimeEntry implements the following interfaces. This means that fragments defined on these interfaces may be used in queries returning a TimeEntry.