Skip to main content

updateTask

codebolt.taskplaner.updateTask(task: string): Promise
Updates an existing task in the system via WebSocket.

Parameters

NameTypeDescription
taskstringThe updated task information.

Example

const updateResult = await codebolt.taskplaner.updateTask('Complete project documentation - UPDATED with new requirements');
console.log('✅ Task updated successfully');
console.log(' - Response:', updateResult);
console.log(' - Success:', updateResult?.success);

// Update multiple tasks with status
const taskUpdates = [
'Review code changes - COMPLETED',
'Update unit tests - IN PROGRESS',
'Fix bug in authentication module - ASSIGNED to John',
'Prepare release notes - PENDING review'
];

for (const update of taskUpdates) {
await codebolt.taskplaner.updateTask(update);
}
console.log('✅ Multiple task updates completed');