Skip to main content

get

plugin.tasksApi.get(taskId: string): Promise<Task>

Retrieves a specific task by its unique identifier.

Returns the complete task object including all properties, metadata, and relationships. Use this to get full task details after a search or when you need the complete task representation.

Parameters

ParameterTypeRequiredDescription
taskIdstringYesThe unique identifier of the task to retrieve

Returns

Promise<Task> — A promise that resolves to the Task object with the specified ID

Example

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.tasksApi.get('taskId');
console.log(result);