Back to Autogpt

Todoist Tasks

docs/integrations/block-integrations/todoist/tasks.md

0.6.447.5 KB
Original Source

Todoist Tasks

<!-- MANUAL: file_description -->

Blocks for creating, updating, and managing tasks in Todoist.

<!-- END MANUAL -->

Todoist Close Task

What it is

Closes a task in Todoist

How it works

<!-- MANUAL: how_it_works -->

Uses task ID to mark it complete via Todoist API.

<!-- END MANUAL -->

Inputs

InputDescriptionTypeRequired
task_idTask ID to closestrYes

Outputs

OutputDescriptionType
errorError message if the operation failedstr
successWhether the task was successfully closedbool

Possible use case

<!-- MANUAL: use_case -->

Marking tasks as done in automated workflows.

<!-- END MANUAL -->

Todoist Create Task

What it is

Creates a new task in a Todoist project

How it works

<!-- MANUAL: how_it_works -->

Takes task details and creates a new task via Todoist API.

<!-- END MANUAL -->

Inputs

InputDescriptionTypeRequired
contentTask contentstrYes
descriptionTask descriptionstrNo
project_idProject ID this task should belong tostrNo
section_idSection ID this task should belong tostrNo
parent_idParent task IDstrNo
orderOptional order among other tasks,[Non-zero integer value used by clients to sort tasks under the same parent]intNo
labelsTask labelsList[str]No
priorityTask priority from 1 (normal) to 4 (urgent)intNo
due_dateDue date in YYYY-MM-DD formatstr (date-time)No
deadline_dateSpecific date in YYYY-MM-DD format relative to user's timezonestr (date-time)No
assignee_idResponsible user IDstrNo
duration_unitTask duration unit (minute/day)strNo
durationTask duration amount, You need to selecct the duration unit firstintNo

Outputs

OutputDescriptionType
errorError message if the operation failedstr
idTask IDstr
urlTask URLstr
complete_dataComplete task data as dictionaryDict[str, Any]

Possible use case

<!-- MANUAL: use_case -->

Creating new tasks with full customization of parameters.

<!-- END MANUAL -->

Todoist Delete Task

What it is

Deletes a task in Todoist

How it works

<!-- MANUAL: how_it_works -->

Uses task ID to delete via Todoist API.

<!-- END MANUAL -->

Inputs

InputDescriptionTypeRequired
task_idTask ID to deletestrYes

Outputs

OutputDescriptionType
errorError message if the operation failedstr
successWhether the task was successfully deletedbool

Possible use case

<!-- MANUAL: use_case -->

Removing unwanted or obsolete tasks from the system.

<!-- END MANUAL -->

Todoist Get Task

What it is

Get an active task from Todoist

How it works

<!-- MANUAL: how_it_works -->

This block retrieves a single active task from Todoist using the task's unique ID. It queries the Todoist REST API and returns comprehensive task details including content, description, due dates, labels, and project association.

Only active (uncompleted) tasks can be retrieved; closed tasks are not accessible through this endpoint.

<!-- END MANUAL -->

Inputs

InputDescriptionTypeRequired
task_idTask ID to retrievestrYes

Outputs

OutputDescriptionType
errorError message if the operation failedstr
project_idProject ID containing the taskstr
urlTask URLstr
complete_dataComplete task data as dictionaryDict[str, Any]

Possible use case

<!-- MANUAL: use_case -->

Task Details Retrieval: Fetch complete information about a specific task for display or processing in workflows.

Workflow Branching: Get task details to make decisions based on due dates, labels, or priority levels.

Task Auditing: Retrieve individual tasks to verify their current state before performing updates or other operations.

<!-- END MANUAL -->

Todoist Get Tasks

What it is

Get active tasks from Todoist

How it works

<!-- MANUAL: how_it_works -->

Queries Todoist API with provided filters to get matching tasks.

<!-- END MANUAL -->

Inputs

InputDescriptionTypeRequired
project_idFilter tasks by project IDstrNo
section_idFilter tasks by section IDstrNo
labelFilter tasks by label namestrNo
filterFilter by any supported filter, You can see How to use filters or create one of your one here - https://todoist.com/help/articles/introduction-to-filters-V98wIHstrNo
langIETF language tag for filter languagestrNo
idsList of task IDs to retrieveList[str]No

Outputs

OutputDescriptionType
errorError message if the operation failedstr
idsTask IDsList[str]
urlsTask URLsList[str]
complete_dataComplete task data as dictionaryList[Dict[str, Any]]

Possible use case

<!-- MANUAL: use_case -->

Retrieving tasks matching specific criteria for review or processing.

<!-- END MANUAL -->

Todoist Reopen Task

What it is

Reopens a task in Todoist

How it works

<!-- MANUAL: how_it_works -->

Uses task ID to reactivate via Todoist API.

<!-- END MANUAL -->

Inputs

InputDescriptionTypeRequired
task_idTask ID to reopenstrYes

Outputs

OutputDescriptionType
errorError message if the operation failedstr
successWhether the task was successfully reopenedbool

Possible use case

<!-- MANUAL: use_case -->

Reactivating tasks that were closed accidentally or need to be repeated.

<!-- END MANUAL -->

Todoist Update Task

What it is

Updates an existing task in Todoist

How it works

<!-- MANUAL: how_it_works -->

Takes task ID and updated fields, applies changes via Todoist API.

<!-- END MANUAL -->

Inputs

InputDescriptionTypeRequired
task_idTask ID to updatestrYes
contentTask contentstrYes
descriptionTask descriptionstrNo
project_idProject ID this task should belong tostrNo
section_idSection ID this task should belong tostrNo
parent_idParent task IDstrNo
orderOptional order among other tasks,[Non-zero integer value used by clients to sort tasks under the same parent]intNo
labelsTask labelsList[str]No
priorityTask priority from 1 (normal) to 4 (urgent)intNo
due_dateDue date in YYYY-MM-DD formatstr (date-time)No
deadline_dateSpecific date in YYYY-MM-DD format relative to user's timezonestr (date-time)No
assignee_idResponsible user IDstrNo
duration_unitTask duration unit (minute/day)strNo
durationTask duration amount, You need to selecct the duration unit firstintNo

Outputs

OutputDescriptionType
errorError message if the operation failedstr
successWhether the update was successfulbool

Possible use case

<!-- MANUAL: use_case -->

Modifying task details like due dates, priority etc.

<!-- END MANUAL -->