mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
✨ Add support for Todoist task descriptions (#1874)
This commit is contained in:
parent
2f5228c8ba
commit
28eb8ca166
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue