Skip to main content

getForCurrentProject

client.tasks.getForCurrentProject(): Promise<Task[]>

Retrieves all tasks associated with the current project.

Returns tasks that belong to the currently active project context. This is useful for project-specific task views and when you need to operate on tasks within the current working project.

Parameters

No parameters.

Returns

Promise<Task[]> — A promise that resolves to an array of Task objects for the current project

Example

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

const client = new CodeBoltClient();

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