Reports
Endpoints
Get Time Report
GET https://cubicl.io/api/v1/reports/timers
Returns completed timer records for the given project and date range. Viewing reports in the project is required.
user, skip, and limit are optional. If omitted, all matching records are returned.
When skip or limit is set, records are ordered by start descending (newest first).
Query Parameters
group*
string
Project ID
from*
number
Start date (Unix seconds)
to*
number
End date (Unix seconds)
recursive*
string
"true": include child projects. "false": only the given project.
archived
string
true: archived tasks. false: not archived. all: both.
fetch
string
Comma-separated extra data. Examples: parent, subtasks
user
string
ID of the user who created the timer. If omitted, all users.
skip
number
Number of records to skip. Default: no skip. Minimum 0.
limit
number
Number of records to return. Default: no limit. Minimum 1.
Timer[]{ code: 4 }Get Task Stage Times
GET https://cubicl.io/api/v1/reports/task-stage-times
Returns time spent in each task state for tasks in a project.
Query Parameters
group*
string
Project ID
start*
number
Start date (Unix seconds)
end*
number
End date (Unix seconds)
type
string
user or task. How the report is grouped.
archived
string
true, false, or all.
Get Task Stage Times By IDs
POST https://cubicl.io/api/v1/reports/task-stage-times-by-ids
Returns stage times for multiple tasks. Tasks may belong to different projects; report permission is required for each project.
Request Body
taskIds*
string[]
List of task IDs
start*
number
Start date (Unix seconds)
end*
number
End date (Unix seconds)
type
string
user or task
Data
Timer
If fetch=parent, parent may be a task object.
If fetch=subtasks, subtasks may be task objects.
Task stage time
GET /reports/task-stage-times and POST /reports/task-stage-times-by-ids return a TaskStageTime[] array.
When type=task, each item is a task.
When type=user, each item is a user;
- assignees and lastState are not returned.
- stateStats values are in seconds. Keys are the project's task state names.
Last updated