updateTask
codebolt.taskplaner.updateTask(task: string): Promise<UpdateTasksResponse>
Updates an existing task in the system via WebSocket.
Parameters
Name | Type | Description |
---|---|---|
task | string | The updated task information. |
Returns:
Promise<UpdateTasksResponse>
A promise that resolves with the response from the update task event.Example
import codebolt from '@codebolt/codeboltjs';
async function exampleUpdateTask() {
try {
const response = await codebolt.taskplaner.updateTask("Update project documentation");
console.log("Task updated successfully:", response);
} catch (error) {
console.error("Failed to update task:", error);
}
}
exampleUpdateTask();