2022-08-01 13:47:55 -07:00
import { INodeProperties } from 'n8n-workflow' ;
2020-01-18 14:19:31 -08:00
2021-12-03 00:44:16 -08:00
export const taskOperations : INodeProperties [ ] = [
2020-01-18 14:19:31 -08:00
{
displayName : 'Operation' ,
name : 'operation' ,
type : 'options' ,
2022-05-20 14:47:24 -07:00
noDataExpression : true ,
2020-01-18 14:19:31 -08:00
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
2020-01-18 14:19:31 -08:00
} ,
} ,
options : [
{
name : 'Create' ,
value : 'create' ,
description : 'Create a task' ,
2022-07-10 13:50:51 -07:00
action : 'Create a task' ,
2020-01-18 14:19:31 -08:00
} ,
{
2020-01-18 18:36:57 -08:00
name : 'Delete' ,
value : 'delete' ,
description : 'Delete a task' ,
2022-07-10 13:50:51 -07:00
action : 'Delete a task' ,
2020-01-18 14:19:31 -08:00
} ,
{
name : 'Get' ,
value : 'get' ,
description : 'Get a task' ,
2022-07-10 13:50:51 -07:00
action : 'Get a task' ,
2020-01-18 14:19:31 -08:00
} ,
2020-01-30 09:21:52 -08:00
{
2022-09-07 07:51:14 -07:00
name : 'Get Many' ,
2020-01-30 09:21:52 -08:00
value : 'getAll' ,
description : 'Get all tasks' ,
2022-07-10 13:50:51 -07:00
action : 'Get all tasks' ,
2020-01-30 09:21:52 -08:00
} ,
2020-02-03 09:51:22 -08:00
{
2020-09-06 12:38:18 -07:00
name : 'Member' ,
value : 'member' ,
description : 'Get task members' ,
2022-07-10 13:50:51 -07:00
action : 'Get task members' ,
2020-09-06 12:38:18 -07:00
} ,
{
name : 'Set Custom Field' ,
2020-02-03 09:51:22 -08:00
value : 'setCustomField' ,
description : 'Set a custom field' ,
2022-07-10 13:50:51 -07:00
action : 'Set a custom Field on a task' ,
2020-02-03 09:51:22 -08:00
} ,
2020-01-18 14:19:31 -08:00
{
2020-01-18 18:36:57 -08:00
name : 'Update' ,
value : 'update' ,
description : 'Update a task' ,
2022-07-10 13:50:51 -07:00
action : 'Update a task' ,
2020-01-18 14:19:31 -08:00
} ,
] ,
default : 'create' ,
} ,
2021-12-03 00:44:16 -08:00
] ;
2020-01-18 14:19:31 -08:00
2021-12-03 00:44:16 -08:00
export const taskFields : INodeProperties [ ] = [
2021-03-24 15:01:12 -07:00
/* -------------------------------------------------------------------------- */
/* task:create */
/* -------------------------------------------------------------------------- */
2020-01-18 14:19:31 -08:00
{
2022-06-03 10:23:49 -07:00
displayName : 'Team Name or ID' ,
2020-04-20 21:57:39 -07:00
name : 'team' ,
2020-01-18 14:19:31 -08:00
type : 'options' ,
2022-08-01 13:47:55 -07:00
description :
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>' ,
2020-01-18 14:19:31 -08:00
default : '' ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'create' ] ,
2020-01-18 14:19:31 -08:00
} ,
} ,
typeOptions : {
loadOptionsMethod : 'getTeams' ,
} ,
required : true ,
} ,
{
2022-06-03 10:23:49 -07:00
displayName : 'Space Name or ID' ,
2020-04-20 21:57:39 -07:00
name : 'space' ,
2020-01-18 14:19:31 -08:00
type : 'options' ,
2022-08-01 13:47:55 -07:00
description :
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>' ,
2020-01-18 14:19:31 -08:00
default : '' ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'create' ] ,
2020-01-18 14:19:31 -08:00
} ,
} ,
typeOptions : {
loadOptionsMethod : 'getSpaces' ,
2022-08-01 13:47:55 -07:00
loadOptionsDependsOn : [ 'team' ] ,
2020-01-18 14:19:31 -08:00
} ,
required : true ,
} ,
2020-01-26 14:46:10 -08:00
{
2020-01-26 19:48:57 -08:00
displayName : 'Folderless List' ,
name : 'folderless' ,
2020-01-26 14:46:10 -08:00
type : 'boolean' ,
default : false ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'create' ] ,
2020-01-26 14:46:10 -08:00
} ,
} ,
required : true ,
} ,
2020-01-18 14:19:31 -08:00
{
2022-06-03 10:23:49 -07:00
displayName : 'Folder Name or ID' ,
2020-04-20 21:57:39 -07:00
name : 'folder' ,
2020-01-18 14:19:31 -08:00
type : 'options' ,
2022-08-01 13:47:55 -07:00
description :
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>' ,
2020-01-18 14:19:31 -08:00
default : '' ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'create' ] ,
folderless : [ false ] ,
2020-01-18 14:19:31 -08:00
} ,
} ,
typeOptions : {
loadOptionsMethod : 'getFolders' ,
2022-08-01 13:47:55 -07:00
loadOptionsDependsOn : [ 'space' ] ,
2020-01-26 14:46:10 -08:00
} ,
required : true ,
} ,
{
2022-06-03 10:23:49 -07:00
displayName : 'List Name or ID' ,
2020-04-20 21:57:39 -07:00
name : 'list' ,
2020-01-26 14:46:10 -08:00
type : 'options' ,
2022-08-01 13:47:55 -07:00
description :
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>' ,
2020-01-26 14:46:10 -08:00
default : '' ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'create' ] ,
folderless : [ true ] ,
2020-01-26 14:46:10 -08:00
} ,
} ,
typeOptions : {
loadOptionsMethod : 'getFolderlessLists' ,
2022-08-01 13:47:55 -07:00
loadOptionsDependsOn : [ 'space' ] ,
2020-01-18 14:19:31 -08:00
} ,
required : true ,
} ,
{
2022-06-03 10:23:49 -07:00
displayName : 'List Name or ID' ,
2020-04-20 21:57:39 -07:00
name : 'list' ,
2020-01-18 14:19:31 -08:00
type : 'options' ,
2022-08-01 13:47:55 -07:00
description :
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>' ,
2020-01-18 14:19:31 -08:00
default : '' ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'create' ] ,
folderless : [ false ] ,
2020-01-18 14:19:31 -08:00
} ,
} ,
typeOptions : {
loadOptionsMethod : 'getLists' ,
2022-08-01 13:47:55 -07:00
loadOptionsDependsOn : [ 'folder' ] ,
2020-01-18 14:19:31 -08:00
} ,
required : true ,
} ,
{
displayName : 'Name' ,
name : 'name' ,
type : 'string' ,
default : '' ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'create' ] ,
2020-01-18 14:19:31 -08:00
} ,
} ,
required : true ,
description : 'The first name on the task' ,
} ,
{
displayName : 'Additional Fields' ,
name : 'additionalFields' ,
type : 'collection' ,
placeholder : 'Add Field' ,
default : { } ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'create' ] ,
2020-01-18 14:19:31 -08:00
} ,
} ,
options : [
{
2022-06-20 07:54:01 -07:00
displayName : 'Assignee Names or IDs' ,
2020-01-18 14:19:31 -08:00
name : 'assignees' ,
type : 'multiOptions' ,
2022-08-01 13:47:55 -07:00
description :
'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>' ,
2020-01-18 14:19:31 -08:00
typeOptions : {
2020-01-18 18:36:57 -08:00
loadOptionsMethod : 'getAssignees' ,
2022-08-01 13:47:55 -07:00
loadOptionsDependsOn : [ 'list' ] ,
2020-01-18 14:19:31 -08:00
} ,
default : [ ] ,
} ,
2020-02-06 18:41:00 -08:00
{
displayName : 'Custom Fields JSON' ,
name : 'customFieldsJson' ,
type : 'json' ,
typeOptions : {
alwaysOpenEditWindow : true ,
} ,
default : '' ,
2022-05-06 14:01:25 -07:00
// eslint-disable-next-line n8n-nodes-base/node-param-description-miscased-id
2022-08-01 13:47:55 -07:00
description :
'Custom fields to set as JSON in the format: <code>[ {"id": "", "value": ""} ]</code>' ,
2020-02-06 18:41:00 -08:00
} ,
2020-01-18 14:19:31 -08:00
{
2020-01-18 18:36:57 -08:00
displayName : 'Content' ,
name : 'content' ,
type : 'string' ,
2020-01-18 14:19:31 -08:00
typeOptions : {
2020-01-18 18:36:57 -08:00
alwaysOpenEditWindow : true ,
2020-01-18 14:19:31 -08:00
} ,
2020-01-18 18:36:57 -08:00
default : '' ,
2020-01-18 14:19:31 -08:00
} ,
{
2020-01-18 18:36:57 -08:00
displayName : 'Due Date' ,
name : 'dueDate' ,
type : 'dateTime' ,
2020-01-18 14:19:31 -08:00
default : '' ,
} ,
{
2020-01-18 18:36:57 -08:00
displayName : 'Due Date Time' ,
name : 'dueDateTime' ,
type : 'boolean' ,
default : false ,
} ,
{
displayName : 'Is Markdown Content' ,
name : 'markdownContent' ,
type : 'boolean' ,
default : false ,
2020-01-18 14:19:31 -08:00
} ,
{
displayName : 'Notify All' ,
name : 'notifyAll' ,
type : 'boolean' ,
default : false ,
} ,
{
displayName : 'Parent ID' ,
name : 'parentId' ,
type : 'string' ,
default : '' ,
} ,
2020-01-18 18:36:57 -08:00
{
displayName : 'Priority' ,
name : 'priority' ,
type : 'number' ,
typeOptions : {
2020-01-26 19:50:17 -08:00
minValue : 1 ,
2020-01-18 18:36:57 -08:00
maxValue : 4 ,
} ,
description : 'Integer mapping as 1 : Urgent, 2 : High, 3 : Normal, 4 : Low' ,
default : 3 ,
} ,
2020-09-06 12:38:18 -07:00
{
displayName : 'Start Date' ,
name : 'startDate' ,
type : 'dateTime' ,
default : '' ,
} ,
2020-01-18 14:19:31 -08:00
{
displayName : 'Start Date Time' ,
name : 'startDateTime' ,
type : 'boolean' ,
default : false ,
} ,
{
2022-06-03 10:23:49 -07:00
displayName : 'Status Name or ID' ,
2020-01-18 18:36:57 -08:00
name : 'status' ,
type : 'options' ,
2022-08-01 13:47:55 -07:00
description :
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>' ,
2020-01-18 18:36:57 -08:00
typeOptions : {
loadOptionsMethod : 'getStatuses' ,
2022-08-01 13:47:55 -07:00
loadOptionsDependsOn : [ 'list' ] ,
2020-01-18 18:36:57 -08:00
} ,
default : '' ,
2020-01-18 14:19:31 -08:00
} ,
{
2022-06-20 07:54:01 -07:00
displayName : 'Tag Names or IDs' ,
2020-01-18 18:36:57 -08:00
name : 'tags' ,
type : 'multiOptions' ,
typeOptions : {
loadOptionsMethod : 'getTags' ,
2022-08-01 13:47:55 -07:00
loadOptionsDependsOn : [ 'space' ] ,
2020-01-18 18:36:57 -08:00
} ,
default : [ ] ,
2022-08-01 13:47:55 -07:00
description :
'The array of tags applied to this task. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.' ,
2020-01-18 14:19:31 -08:00
} ,
{
displayName : 'Time Estimate' ,
name : 'timeEstimate' ,
type : 'number' ,
2022-06-03 10:23:49 -07:00
description : 'Time estimate in minutes' ,
2020-01-18 14:19:31 -08:00
default : 1 ,
} ,
] ,
} ,
2021-03-24 15:01:12 -07:00
/* -------------------------------------------------------------------------- */
/* task:update */
/* -------------------------------------------------------------------------- */
2020-01-18 14:19:31 -08:00
{
displayName : 'Task ID' ,
2020-04-20 21:57:39 -07:00
name : 'id' ,
2020-01-18 14:19:31 -08:00
type : 'string' ,
default : '' ,
required : true ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'update' ] ,
2020-01-18 14:19:31 -08:00
} ,
} ,
} ,
{
displayName : 'Update Fields' ,
name : 'updateFields' ,
type : 'collection' ,
placeholder : 'Add Field' ,
default : { } ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'update' ] ,
2020-01-18 14:19:31 -08:00
} ,
} ,
options : [
2020-04-20 21:57:39 -07:00
{
displayName : 'Add Assignees' ,
name : 'addAssignees' ,
type : 'string' ,
default : '' ,
2022-04-22 09:29:51 -07:00
description : 'Assignees IDs. Multiple ca be added separated by comma.' ,
2020-04-20 21:57:39 -07:00
} ,
2020-01-18 14:19:31 -08:00
{
displayName : 'Content' ,
name : 'content' ,
type : 'string' ,
typeOptions : {
alwaysOpenEditWindow : true ,
} ,
default : '' ,
} ,
2020-01-18 18:36:57 -08:00
{
displayName : 'Due Date' ,
name : 'dueDate' ,
type : 'dateTime' ,
default : '' ,
} ,
{
displayName : 'Due Date Time' ,
name : 'dueDateTime' ,
type : 'boolean' ,
default : false ,
} ,
2020-01-18 14:19:31 -08:00
{
displayName : 'Is Markdown Content' ,
name : 'markdownContent' ,
type : 'boolean' ,
default : false ,
} ,
{
2020-01-18 18:36:57 -08:00
displayName : 'Name' ,
name : 'name' ,
type : 'string' ,
default : '' ,
2020-01-18 14:19:31 -08:00
} ,
{
displayName : 'Notify All' ,
name : 'notifyAll' ,
type : 'boolean' ,
default : false ,
} ,
{
displayName : 'Parent ID' ,
name : 'parentId' ,
type : 'string' ,
default : '' ,
} ,
{
2020-01-18 18:36:57 -08:00
displayName : 'Priority' ,
name : 'priority' ,
type : 'number' ,
typeOptions : {
2020-01-26 19:50:17 -08:00
minValue : 1 ,
2020-01-18 18:36:57 -08:00
maxValue : 4 ,
} ,
description : 'Integer mapping as 1 : Urgent, 2 : High, 3 : Normal, 4 : Low' ,
default : 3 ,
2020-01-18 14:19:31 -08:00
} ,
2020-04-20 21:57:39 -07:00
{
displayName : 'Remove Assignees' ,
name : 'removeAssignees' ,
type : 'string' ,
default : '' ,
2022-04-22 09:29:51 -07:00
description : 'Assignees IDs. Multiple ca be added separated by comma.' ,
2020-04-20 21:57:39 -07:00
} ,
{
displayName : 'Status' ,
name : 'status' ,
type : 'string' ,
default : '' ,
} ,
2020-09-06 12:38:18 -07:00
{
displayName : 'Start Date' ,
name : 'startDate' ,
type : 'dateTime' ,
default : '' ,
} ,
2020-01-18 14:19:31 -08:00
{
2020-01-18 18:36:57 -08:00
displayName : 'Start Date Time' ,
name : 'startDateTime' ,
2020-01-18 14:19:31 -08:00
type : 'boolean' ,
default : false ,
} ,
{
displayName : 'Time Estimate' ,
name : 'timeEstimate' ,
type : 'number' ,
2022-06-03 10:23:49 -07:00
description : 'Time estimate in minutes' ,
2020-01-18 14:19:31 -08:00
default : 1 ,
} ,
] ,
} ,
2021-03-24 15:01:12 -07:00
/* -------------------------------------------------------------------------- */
/* task:get */
/* -------------------------------------------------------------------------- */
2020-01-18 14:19:31 -08:00
{
displayName : 'Task ID' ,
2020-04-20 21:57:39 -07:00
name : 'id' ,
2020-01-18 14:19:31 -08:00
type : 'string' ,
default : '' ,
required : true ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'get' ] ,
2020-01-18 14:19:31 -08:00
} ,
} ,
} ,
2021-03-24 15:01:12 -07:00
/* -------------------------------------------------------------------------- */
/* task:getAll */
/* -------------------------------------------------------------------------- */
2020-01-30 09:21:52 -08:00
{
2022-06-03 10:23:49 -07:00
displayName : 'Team Name or ID' ,
2020-04-20 21:57:39 -07:00
name : 'team' ,
2020-01-30 09:21:52 -08:00
type : 'options' ,
2022-08-01 13:47:55 -07:00
description :
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>' ,
2020-01-30 09:21:52 -08:00
default : '' ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'getAll' ] ,
2020-01-30 09:21:52 -08:00
} ,
} ,
typeOptions : {
loadOptionsMethod : 'getTeams' ,
} ,
required : true ,
} ,
{
2022-06-03 10:23:49 -07:00
displayName : 'Space Name or ID' ,
2020-04-20 21:57:39 -07:00
name : 'space' ,
2020-01-30 09:21:52 -08:00
type : 'options' ,
2022-08-01 13:47:55 -07:00
description :
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>' ,
2020-01-30 09:21:52 -08:00
default : '' ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'getAll' ] ,
2020-01-30 09:21:52 -08:00
} ,
} ,
typeOptions : {
loadOptionsMethod : 'getSpaces' ,
2022-08-01 13:47:55 -07:00
loadOptionsDependsOn : [ 'team' ] ,
2020-01-30 09:21:52 -08:00
} ,
required : true ,
} ,
{
displayName : 'Folderless List' ,
name : 'folderless' ,
type : 'boolean' ,
default : false ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'getAll' ] ,
2020-01-30 09:21:52 -08:00
} ,
} ,
required : true ,
} ,
{
2022-06-03 10:23:49 -07:00
displayName : 'Folder Name or ID' ,
2020-04-20 21:57:39 -07:00
name : 'folder' ,
2020-01-30 09:21:52 -08:00
type : 'options' ,
2022-08-01 13:47:55 -07:00
description :
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>' ,
2020-01-30 09:21:52 -08:00
default : '' ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'getAll' ] ,
folderless : [ false ] ,
2020-01-30 09:21:52 -08:00
} ,
} ,
typeOptions : {
loadOptionsMethod : 'getFolders' ,
2022-08-01 13:47:55 -07:00
loadOptionsDependsOn : [ 'space' ] ,
2020-01-30 09:21:52 -08:00
} ,
required : true ,
} ,
{
2022-06-03 10:23:49 -07:00
displayName : 'List Name or ID' ,
2020-04-20 21:57:39 -07:00
name : 'list' ,
2020-01-30 09:21:52 -08:00
type : 'options' ,
2022-08-01 13:47:55 -07:00
description :
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>' ,
2020-01-30 09:21:52 -08:00
default : '' ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'getAll' ] ,
folderless : [ true ] ,
2020-01-30 09:21:52 -08:00
} ,
} ,
typeOptions : {
loadOptionsMethod : 'getFolderlessLists' ,
2022-08-01 13:47:55 -07:00
loadOptionsDependsOn : [ 'space' ] ,
2020-01-30 09:21:52 -08:00
} ,
required : true ,
} ,
{
2022-06-03 10:23:49 -07:00
displayName : 'List Name or ID' ,
2020-04-20 21:57:39 -07:00
name : 'list' ,
2020-01-30 09:21:52 -08:00
type : 'options' ,
2022-08-01 13:47:55 -07:00
description :
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>' ,
2020-01-30 09:21:52 -08:00
default : '' ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'getAll' ] ,
folderless : [ false ] ,
2020-01-30 09:21:52 -08:00
} ,
} ,
typeOptions : {
loadOptionsMethod : 'getLists' ,
2022-08-01 13:47:55 -07:00
loadOptionsDependsOn : [ 'folder' ] ,
2020-01-30 09:21:52 -08:00
} ,
required : true ,
} ,
2020-04-20 07:35:58 -07:00
{
displayName : 'Return All' ,
name : 'returnAll' ,
type : 'boolean' ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'getAll' ] ,
2020-04-20 07:35:58 -07:00
} ,
} ,
default : true ,
2022-05-06 14:01:25 -07:00
description : 'Whether to return all results or only up to a given limit' ,
2020-04-20 07:35:58 -07:00
} ,
{
displayName : 'Limit' ,
name : 'limit' ,
type : 'number' ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'getAll' ] ,
returnAll : [ false ] ,
2020-04-20 07:35:58 -07:00
} ,
} ,
typeOptions : {
minValue : 1 ,
maxValue : 100 ,
} ,
default : 50 ,
2022-05-06 14:01:25 -07:00
description : 'Max number of results to return' ,
2020-04-20 07:35:58 -07:00
} ,
2020-01-30 09:21:52 -08:00
{
displayName : 'Filters' ,
name : 'filters' ,
type : 'collection' ,
placeholder : 'Add Filter' ,
default : { } ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'getAll' ] ,
2020-01-30 09:21:52 -08:00
} ,
} ,
options : [
2020-01-30 10:38:38 -08:00
{
displayName : 'Archived' ,
name : 'archived' ,
type : 'boolean' ,
default : false ,
} ,
2020-01-30 09:21:52 -08:00
{
2022-06-20 07:54:01 -07:00
displayName : 'Assignee Names or IDs' ,
2020-01-30 09:21:52 -08:00
name : 'assignees' ,
type : 'multiOptions' ,
2022-08-01 13:47:55 -07:00
description :
'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>' ,
2020-01-30 09:21:52 -08:00
typeOptions : {
loadOptionsMethod : 'getAssignees' ,
2022-08-01 13:47:55 -07:00
loadOptionsDependsOn : [ 'list' ] ,
2020-01-30 09:21:52 -08:00
} ,
default : [ ] ,
} ,
2020-09-06 12:38:18 -07:00
{
displayName : 'Custom Fields' ,
name : 'customFieldsUi' ,
placeholder : 'Add Custom Field' ,
type : 'fixedCollection' ,
typeOptions : {
multipleValues : true ,
} ,
2022-05-06 14:01:25 -07:00
description : 'Filter by custom fields' ,
2020-09-06 12:38:18 -07:00
default : { } ,
options : [
{
name : 'customFieldsValues' ,
displayName : 'Custom Field' ,
values : [
{
2022-06-03 10:23:49 -07:00
displayName : 'Field Name or ID' ,
2020-09-06 12:38:18 -07:00
name : 'fieldId' ,
type : 'options' ,
typeOptions : {
loadOptionsMethod : 'getCustomFields' ,
} ,
default : '' ,
2022-08-01 13:47:55 -07:00
description :
'The ID of the field to add custom field to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.' ,
2020-09-06 12:38:18 -07:00
} ,
{
displayName : 'Operator' ,
name : 'operator' ,
type : 'options' ,
options : [
{
2022-06-03 10:23:49 -07:00
name : '!=' ,
value : '!=' ,
2020-09-06 12:38:18 -07:00
} ,
{
name : '<' ,
value : '<' ,
} ,
{
name : '<=' ,
value : '<=' ,
} ,
{
name : '>' ,
value : '>' ,
} ,
{
name : '>=' ,
value : '>=' ,
} ,
{
2022-06-03 10:23:49 -07:00
name : 'Equal' ,
value : 'equal' ,
2020-09-06 12:38:18 -07:00
} ,
{
name : 'Is Not Null' ,
value : 'IS NOT NULL' ,
} ,
2022-06-03 10:23:49 -07:00
{
name : 'Is Null' ,
value : 'IS NULL' ,
} ,
2020-09-06 12:38:18 -07:00
] ,
default : 'equal' ,
2022-05-06 14:01:25 -07:00
description : 'The value to set on custom field' ,
2020-09-06 12:38:18 -07:00
} ,
{
displayName : 'Value' ,
name : 'value' ,
type : 'string' ,
displayOptions : {
hide : {
2022-08-01 13:47:55 -07:00
operator : [ 'IS NULL' , 'IS NOT NULL' ] ,
2020-09-06 12:38:18 -07:00
} ,
} ,
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'The value to set on custom field' ,
2020-09-06 12:38:18 -07:00
} ,
] ,
} ,
] ,
} ,
2020-01-30 09:21:52 -08:00
{
2020-01-30 10:38:38 -08:00
displayName : 'Date Created Greater Than' ,
name : 'dateCreatedGt' ,
type : 'dateTime' ,
default : '' ,
description : 'Filter date created greater' ,
2020-01-30 09:21:52 -08:00
} ,
{
2020-01-30 10:38:38 -08:00
displayName : 'Date Created Less Than' ,
name : 'dateCreatedLt' ,
type : 'dateTime' ,
default : '' ,
description : 'Filter date created less than posix time' ,
} ,
{
displayName : 'Date Updated Greater Than' ,
name : 'dateUpdatedGt' ,
type : 'dateTime' ,
default : '' ,
description : 'Filter date updated greater than' ,
} ,
{
displayName : 'Date Update Less Than' ,
name : 'dateUpdatedLt' ,
type : 'dateTime' ,
default : '' ,
description : 'Filter date updated less than' ,
} ,
{
displayName : 'Due Date Greater Than' ,
name : 'dueDateGt' ,
type : 'dateTime' ,
default : '' ,
description : 'Filter due date greater than' ,
} ,
{
displayName : 'Due Date Less Than' ,
name : 'dueDateLt' ,
type : 'dateTime' ,
default : '' ,
description : 'Filter due date less than' ,
2020-01-30 09:21:52 -08:00
} ,
{
displayName : 'Include Closed' ,
name : 'includeClosed' ,
type : 'boolean' ,
default : false ,
2022-06-20 07:54:01 -07:00
// eslint-disable-next-line n8n-nodes-base/node-param-description-boolean-without-whether
2022-08-01 13:47:55 -07:00
description :
'The response does by default not include closed tasks. Set this to true and dont send a status filter to include closed tasks.' ,
2020-01-30 09:21:52 -08:00
} ,
{
displayName : 'Order By' ,
name : 'orderBy' ,
type : 'options' ,
default : '' ,
options : [
{
name : 'ID' ,
value : 'id' ,
} ,
{
name : 'Created' ,
value : 'created' ,
} ,
{
name : 'Updated' ,
value : 'updated' ,
} ,
{
name : 'Due Date' ,
value : 'dueDate' ,
} ,
] ,
} ,
{
2022-06-20 07:54:01 -07:00
displayName : 'Status Names or IDs' ,
2020-01-30 09:21:52 -08:00
name : 'statuses' ,
type : 'multiOptions' ,
2022-08-01 13:47:55 -07:00
description :
'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>' ,
2020-01-30 09:21:52 -08:00
typeOptions : {
loadOptionsMethod : 'getStatuses' ,
2022-08-01 13:47:55 -07:00
loadOptionsDependsOn : [ 'list' ] ,
2020-01-30 09:21:52 -08:00
} ,
default : [ ] ,
} ,
2020-01-30 10:38:38 -08:00
{
displayName : 'Subtasks' ,
name : 'subtasks' ,
type : 'boolean' ,
default : false ,
2022-06-20 07:54:01 -07:00
description : 'Whether to include subtasks, default false' ,
2020-01-30 10:38:38 -08:00
} ,
2020-01-30 09:21:52 -08:00
{
2022-06-20 07:54:01 -07:00
displayName : 'Tag Names or IDs' ,
2020-01-30 09:21:52 -08:00
name : 'tags' ,
type : 'multiOptions' ,
typeOptions : {
loadOptionsMethod : 'getTags' ,
2022-08-01 13:47:55 -07:00
loadOptionsDependsOn : [ 'space' ] ,
2020-01-30 09:21:52 -08:00
} ,
default : [ ] ,
2022-08-01 13:47:55 -07:00
description :
'The array of tags applied to this task. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.' ,
2020-01-30 09:21:52 -08:00
} ,
] ,
} ,
2021-03-24 15:01:12 -07:00
/* -------------------------------------------------------------------------- */
/* task:delete */
/* -------------------------------------------------------------------------- */
2020-01-18 14:19:31 -08:00
{
2020-04-20 07:35:58 -07:00
displayName : 'Task ID' ,
2020-04-20 21:57:39 -07:00
name : 'id' ,
2020-01-18 14:19:31 -08:00
type : 'string' ,
default : '' ,
required : true ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'delete' ] ,
2020-01-18 14:19:31 -08:00
} ,
} ,
} ,
2021-03-24 15:01:12 -07:00
/* -------------------------------------------------------------------------- */
/* task:member */
/* -------------------------------------------------------------------------- */
2020-09-06 12:38:18 -07:00
{
displayName : 'Task ID' ,
name : 'id' ,
type : 'string' ,
default : '' ,
required : true ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'member' ] ,
2020-09-06 12:38:18 -07:00
} ,
} ,
} ,
{
displayName : 'Return All' ,
name : 'returnAll' ,
type : 'boolean' ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'member' ] ,
2020-09-06 12:38:18 -07:00
} ,
} ,
default : true ,
2022-05-06 14:01:25 -07:00
description : 'Whether to return all results or only up to a given limit' ,
2020-09-06 12:38:18 -07:00
} ,
{
displayName : 'Limit' ,
name : 'limit' ,
type : 'number' ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'member' ] ,
returnAll : [ false ] ,
2020-09-06 12:38:18 -07:00
} ,
} ,
typeOptions : {
minValue : 1 ,
maxValue : 100 ,
} ,
default : 50 ,
2022-05-06 14:01:25 -07:00
description : 'Max number of results to return' ,
2020-09-06 12:38:18 -07:00
} ,
2021-03-24 15:01:12 -07:00
/* -------------------------------------------------------------------------- */
/* task:setCustomField */
/* -------------------------------------------------------------------------- */
2020-02-03 09:51:22 -08:00
{
displayName : 'Task ID' ,
2020-04-20 21:57:39 -07:00
name : 'task' ,
2020-02-03 09:51:22 -08:00
type : 'string' ,
default : '' ,
required : true ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'setCustomField' ] ,
2020-02-03 09:51:22 -08:00
} ,
} ,
2022-05-06 14:01:25 -07:00
description : 'The ID of the task to add custom field to' ,
2020-02-03 09:51:22 -08:00
} ,
{
displayName : 'Field ID' ,
2020-04-20 21:57:39 -07:00
name : 'field' ,
2020-02-03 09:51:22 -08:00
type : 'string' ,
default : '' ,
required : true ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'setCustomField' ] ,
2020-02-03 09:51:22 -08:00
} ,
} ,
2022-05-06 14:01:25 -07:00
description : 'The ID of the field to add custom field to' ,
2020-02-06 18:41:00 -08:00
} ,
{
2022-06-03 10:23:49 -07:00
displayName : 'Value Is JSON' ,
2020-02-06 18:41:00 -08:00
name : 'jsonParse' ,
type : 'boolean' ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'setCustomField' ] ,
2020-02-06 18:41:00 -08:00
} ,
} ,
default : false ,
2022-06-20 07:54:01 -07:00
// eslint-disable-next-line n8n-nodes-base/node-param-description-boolean-without-whether
2022-08-01 13:47:55 -07:00
description :
'The value is JSON and will be parsed as such. Is needed if for example needed for labels which expects the value to be an array.' ,
2020-02-03 09:51:22 -08:00
} ,
{
displayName : 'Value' ,
name : 'value' ,
type : 'string' ,
default : '' ,
required : true ,
displayOptions : {
show : {
2022-08-01 13:47:55 -07:00
resource : [ 'task' ] ,
operation : [ 'setCustomField' ] ,
2020-02-03 09:51:22 -08:00
} ,
} ,
2022-05-06 14:01:25 -07:00
description : 'The value to set on custom field' ,
2020-02-03 09:51:22 -08:00
} ,
2021-12-03 00:44:16 -08:00
] ;