diff --git a/packages/nodes-base/nodes/Todoist/Todoist.node.ts b/packages/nodes-base/nodes/Todoist/Todoist.node.ts index 4bb77324b7..d52249b21a 100644 --- a/packages/nodes-base/nodes/Todoist/Todoist.node.ts +++ b/packages/nodes-base/nodes/Todoist/Todoist.node.ts @@ -17,6 +17,7 @@ import { interface IBodyCreateTask { content: string; + description?: string; project_id?: number; section_id?: number; parent?: number; @@ -248,6 +249,13 @@ export class Todoist implements INodeType { }, }, options: [ + { + displayName: 'Description', + name: 'description', + type: 'string', + default: '', + description: 'A description for the task.', + }, { displayName: 'Due Date Time', name: 'dueDateTime', @@ -483,6 +491,10 @@ export class Todoist implements INodeType { priority: (options.priority!) ? parseInt(options.priority as string, 10) : 1, }; + if (options.description) { + body.description = options.description as string; + } + if (options.dueDateTime) { body.due_datetime = options.dueDateTime as string; }