Add support for Todoist task descriptions (#1874)

This commit is contained in:
Thomas Jost 2021-06-09 01:55:36 +02:00 committed by GitHub
parent 2f5228c8ba
commit 28eb8ca166
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}