mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -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 {
|
interface IBodyCreateTask {
|
||||||
content: string;
|
content: string;
|
||||||
|
description?: string;
|
||||||
project_id?: number;
|
project_id?: number;
|
||||||
section_id?: number;
|
section_id?: number;
|
||||||
parent?: number;
|
parent?: number;
|
||||||
|
@ -248,6 +249,13 @@ export class Todoist implements INodeType {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
|
{
|
||||||
|
displayName: 'Description',
|
||||||
|
name: 'description',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
description: 'A description for the task.',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Due Date Time',
|
displayName: 'Due Date Time',
|
||||||
name: 'dueDateTime',
|
name: 'dueDateTime',
|
||||||
|
@ -483,6 +491,10 @@ export class Todoist implements INodeType {
|
||||||
priority: (options.priority!) ? parseInt(options.priority as string, 10) : 1,
|
priority: (options.priority!) ? parseInt(options.priority as string, 10) : 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (options.description) {
|
||||||
|
body.description = options.description as string;
|
||||||
|
}
|
||||||
|
|
||||||
if (options.dueDateTime) {
|
if (options.dueDateTime) {
|
||||||
body.due_datetime = options.dueDateTime as string;
|
body.due_datetime = options.dueDateTime as string;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue