Magidoc

getUserTimeEntries
Query

Usage: Allows user to pull time entries for the specified userId in a given time range

Access: Requires workspace admin access

Errors: Returns an error if not a workspace administrator.

Arguments

#

userId

ID !
Non-null

user ID to get time entries for

workspaceId

ID !
Non-null

workspace ID to get time entries for

startDate

Non-null

start date - can be any date value and will perform a $gte match against this start date

endDate

Non-null

end date - can be any date value and will perform a $lte match against this end date

status

optional status of the corresponding timesheet to filter time entries by

containerId

optional container ID to filter time entries by

containerType

optional container type to filter time entries by

categoryId

optional category ID to filter time entries by

first

optional pagination - will return a maximum of 10,000 time entries without paginating

last

optional pagination - will return a maximum of 10,000 time entries without paginating

before

optional pagination - return entries before the specified ID

after

optional pagination - return entries after the specified ID

sortOrder = 1

optional sort order - defaults to 1 (ascending)

filterBy = "date"

optional filter field - defaults to date

Response

#

Returns TimeEntryConnection .

Example

#

    
  

3

    
  

3

    
  

3