Magidoc

getMyTimesheets
Query

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

Access: It requires user access.

Errors: Returns [] if doesn't have access or user with requested userId doesn't exist.

Arguments

#

workspaceId

ID !
Non-null

associated workspaceId

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

userId

user whose data we want to retrieve, if not sent using current user data

rootTimesheetCreatedAt

Client's local date used to determine sorting order for the root timesheet's creation date

Response

#

Returns [Timesheet !]!.

Example

#