Skip to main content

getForProject

client.tasks.getForProject(projectPath: string): Promise<Task[]>

Retrieves all tasks for a specific project path.

Returns tasks that belong to the project identified by its filesystem path. This allows accessing tasks from any project regardless of the current working directory context.

Parameters​

ParameterTypeRequiredDescription
projectPathstringYesThe filesystem path identifying the target project

Returns​

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

Example​

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

const client = new CodeBoltClient();

const result = await client.tasks.getForProject('projectPath');
console.log(result);