Magidoc

getUserTimesheets
Query

Used for the "Manage" tab in "Timesheets" app.

Access: Requires workspace admin access

Errors: Returns [] if not a workspace admin.

Arguments

#

workspaceId

ID !
Non-null

associated workspaceId

userId

ID !
Non-null

user whose data we want to retrieve

startDate

Non-null

start of period for which data should be retrieved.

NOTE: Should be equal to start of the week date in requested workspace, works as an exact date match, not as a date range

endDate

Non-null

end of period for which data should be retrieved.

NOTE: Should be equal to end of the week date in requested workspace, works as an exact date match, not as a date range

Response

#

Returns [ Timesheet !]!.

Example

#

    
  

3

    
  

3

    
  

3