Skip to main content

getProjectStatistics

client.tasks.getProjectStatistics(): Promise<TaskStatistics>

Retrieves statistics for tasks in the current project.

Returns aggregated statistics specific to the current project context, including task counts by status, priority distribution, and other project-specific metrics. Ideal for project dashboards.

Parameters

No parameters.

Returns

Promise<TaskStatistics> — A promise that resolves to TaskStatistics for the current project

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.tasks.getProjectStatistics();
console.log(result);