mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
70ae90fa3c
* ⚡ Update `lintfix` script * 👕 Remove unneeded lint exceptions * 👕 Run baseline `lintfix` * 👕 Apply `node-param-description-miscased-url` (#3441) * 👕 Apply `rule node-param-placeholder-miscased-id` (#3443) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply `node-param-option-name-wrong-for-upsert` (#3446) * 👕 Apply `node-param-min-value-wrong-for-limit` (#3442) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * Apply `node-param-display-name-wrong-for-dynamic-options` (#3454) * 🔨 fix * ⚡ Fix `Assigned To` fields Co-authored-by: Michael Kret <michael.k@radency.com> * 👕 Apply `rule node-param-default-wrong-for-number` (#3453) * 👕 Apply `node-param-default-wrong-for-string` (#3452) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * Apply `node-param-display-name-miscased` (#3449) * 🔨 fix * 🔨 exceptions * ⚡ review fixes * 👕 Apply `node-param-description-lowercase-first-char` (#3451) * ⚡ fix * ⚡ review fixes * ⚡ fix Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply `node-param-description-wrong-for-dynamic-options` (#3456) * Rule working as intended * Add rule * 🔥 Remove repetitions * 👕 Add exceptions Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Small fix for `node-param-description-wrong-for-dynamic-options` * 👕 Apply `node-param-default-wrong-for-fixed-collection` (#3460) * 👕 Apply `node-param-description-line-break-html-tag` (#3462) * 👕 Run baseline `lintfix` * 👕 Apply `node-param-options-type-unsorted-items` (#3459) * ⚡ fix * 🔨 exceptions * Add exception for Salesmate and Zoom Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * ⚡ Restore `lintfix` command Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com> Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com> Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: brianinoa <54530642+brianinoa@users.noreply.github.com>
1083 lines
19 KiB
TypeScript
1083 lines
19 KiB
TypeScript
import {
|
|
INodeProperties,
|
|
} from 'n8n-workflow';
|
|
|
|
export const taskOperations: INodeProperties[] = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
noDataExpression: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Create',
|
|
value: 'create',
|
|
description: 'Create a task',
|
|
},
|
|
{
|
|
name: 'Delete',
|
|
value: 'delete',
|
|
description: 'Delete a task',
|
|
},
|
|
{
|
|
name: 'Get',
|
|
value: 'get',
|
|
description: 'Get a task',
|
|
},
|
|
{
|
|
name: 'Get All',
|
|
value: 'getAll',
|
|
description: 'Get all tasks',
|
|
},
|
|
{
|
|
name: 'Member',
|
|
value: 'member',
|
|
description: 'Get task members',
|
|
},
|
|
{
|
|
name: 'Set Custom Field',
|
|
value: 'setCustomField',
|
|
description: 'Set a custom field',
|
|
},
|
|
{
|
|
name: 'Update',
|
|
value: 'update',
|
|
description: 'Update a task',
|
|
},
|
|
],
|
|
default: 'create',
|
|
},
|
|
];
|
|
|
|
export const taskFields: INodeProperties[] = [
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* task:create */
|
|
/* -------------------------------------------------------------------------- */
|
|
{
|
|
displayName: 'Team Name or ID',
|
|
name: 'team',
|
|
type: 'options',
|
|
default: '',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'create',
|
|
],
|
|
},
|
|
},
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getTeams',
|
|
},
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Space Name or ID',
|
|
name: 'space',
|
|
type: 'options',
|
|
default: '',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'create',
|
|
],
|
|
},
|
|
},
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getSpaces',
|
|
loadOptionsDependsOn: [
|
|
'team',
|
|
],
|
|
},
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Folderless List',
|
|
name: 'folderless',
|
|
type: 'boolean',
|
|
default: false,
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'create',
|
|
],
|
|
},
|
|
},
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Folder Name or ID',
|
|
name: 'folder',
|
|
type: 'options',
|
|
default: '',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'create',
|
|
],
|
|
folderless: [
|
|
false,
|
|
],
|
|
},
|
|
},
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getFolders',
|
|
loadOptionsDependsOn: [
|
|
'space',
|
|
],
|
|
},
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'List Name or ID',
|
|
name: 'list',
|
|
type: 'options',
|
|
default: '',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'create',
|
|
],
|
|
folderless: [
|
|
true,
|
|
],
|
|
},
|
|
},
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getFolderlessLists',
|
|
loadOptionsDependsOn: [
|
|
'space',
|
|
],
|
|
},
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'List Name or ID',
|
|
name: 'list',
|
|
type: 'options',
|
|
default: '',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'create',
|
|
],
|
|
folderless: [
|
|
false,
|
|
],
|
|
},
|
|
},
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getLists',
|
|
loadOptionsDependsOn: [
|
|
'folder',
|
|
],
|
|
},
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Name',
|
|
name: 'name',
|
|
type: 'string',
|
|
default: '',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'create',
|
|
],
|
|
},
|
|
},
|
|
required: true,
|
|
description: 'The first name on the task',
|
|
},
|
|
{
|
|
displayName: 'Additional Fields',
|
|
name: 'additionalFields',
|
|
type: 'collection',
|
|
placeholder: 'Add Field',
|
|
default: {},
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'create',
|
|
],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
displayName: 'Assignees',
|
|
name: 'assignees',
|
|
type: 'multiOptions',
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getAssignees',
|
|
loadOptionsDependsOn: [
|
|
'list',
|
|
],
|
|
},
|
|
default: [],
|
|
},
|
|
{
|
|
displayName: 'Custom Fields JSON',
|
|
name: 'customFieldsJson',
|
|
type: 'json',
|
|
typeOptions: {
|
|
alwaysOpenEditWindow: true,
|
|
},
|
|
default: '',
|
|
// eslint-disable-next-line n8n-nodes-base/node-param-description-miscased-id
|
|
description: 'Custom fields to set as JSON in the format: <code>[ {"id": "", "value": ""} ]</code>',
|
|
},
|
|
{
|
|
displayName: 'Content',
|
|
name: 'content',
|
|
type: 'string',
|
|
typeOptions: {
|
|
alwaysOpenEditWindow: true,
|
|
},
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Due Date',
|
|
name: 'dueDate',
|
|
type: 'dateTime',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Due Date Time',
|
|
name: 'dueDateTime',
|
|
type: 'boolean',
|
|
default: false,
|
|
},
|
|
{
|
|
displayName: 'Is Markdown Content',
|
|
name: 'markdownContent',
|
|
type: 'boolean',
|
|
default: false,
|
|
},
|
|
{
|
|
displayName: 'Notify All',
|
|
name: 'notifyAll',
|
|
type: 'boolean',
|
|
default: false,
|
|
},
|
|
{
|
|
displayName: 'Parent ID',
|
|
name: 'parentId',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Priority',
|
|
name: 'priority',
|
|
type: 'number',
|
|
typeOptions: {
|
|
minValue: 1,
|
|
maxValue: 4,
|
|
},
|
|
description: 'Integer mapping as 1 : Urgent, 2 : High, 3 : Normal, 4 : Low',
|
|
default: 3,
|
|
},
|
|
{
|
|
displayName: 'Start Date',
|
|
name: 'startDate',
|
|
type: 'dateTime',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Start Date Time',
|
|
name: 'startDateTime',
|
|
type: 'boolean',
|
|
default: false,
|
|
},
|
|
{
|
|
displayName: 'Status Name or ID',
|
|
name: 'status',
|
|
type: 'options',
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getStatuses',
|
|
loadOptionsDependsOn: [
|
|
'list',
|
|
],
|
|
},
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Tags',
|
|
name: 'tags',
|
|
type: 'multiOptions',
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getTags',
|
|
loadOptionsDependsOn: [
|
|
'space',
|
|
],
|
|
},
|
|
default: [],
|
|
description: 'The array of tags applied to this task',
|
|
},
|
|
{
|
|
displayName: 'Time Estimate',
|
|
name: 'timeEstimate',
|
|
type: 'number',
|
|
description: 'Time estimate in minutes',
|
|
default: 1,
|
|
},
|
|
],
|
|
},
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* task:update */
|
|
/* -------------------------------------------------------------------------- */
|
|
{
|
|
displayName: 'Task ID',
|
|
name: 'id',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'update',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
displayName: 'Update Fields',
|
|
name: 'updateFields',
|
|
type: 'collection',
|
|
placeholder: 'Add Field',
|
|
default: {},
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'update',
|
|
],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
displayName: 'Add Assignees',
|
|
name: 'addAssignees',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'Assignees IDs. Multiple ca be added separated by comma.',
|
|
},
|
|
{
|
|
displayName: 'Content',
|
|
name: 'content',
|
|
type: 'string',
|
|
typeOptions: {
|
|
alwaysOpenEditWindow: true,
|
|
},
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Due Date',
|
|
name: 'dueDate',
|
|
type: 'dateTime',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Due Date Time',
|
|
name: 'dueDateTime',
|
|
type: 'boolean',
|
|
default: false,
|
|
},
|
|
{
|
|
displayName: 'Is Markdown Content',
|
|
name: 'markdownContent',
|
|
type: 'boolean',
|
|
default: false,
|
|
},
|
|
{
|
|
displayName: 'Name',
|
|
name: 'name',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Notify All',
|
|
name: 'notifyAll',
|
|
type: 'boolean',
|
|
default: false,
|
|
},
|
|
{
|
|
displayName: 'Parent ID',
|
|
name: 'parentId',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Priority',
|
|
name: 'priority',
|
|
type: 'number',
|
|
typeOptions: {
|
|
minValue: 1,
|
|
maxValue: 4,
|
|
},
|
|
description: 'Integer mapping as 1 : Urgent, 2 : High, 3 : Normal, 4 : Low',
|
|
default: 3,
|
|
},
|
|
{
|
|
displayName: 'Remove Assignees',
|
|
name: 'removeAssignees',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'Assignees IDs. Multiple ca be added separated by comma.',
|
|
},
|
|
{
|
|
displayName: 'Status',
|
|
name: 'status',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Start Date',
|
|
name: 'startDate',
|
|
type: 'dateTime',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Start Date Time',
|
|
name: 'startDateTime',
|
|
type: 'boolean',
|
|
default: false,
|
|
},
|
|
{
|
|
displayName: 'Time Estimate',
|
|
name: 'timeEstimate',
|
|
type: 'number',
|
|
description: 'Time estimate in minutes',
|
|
default: 1,
|
|
},
|
|
],
|
|
|
|
},
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* task:get */
|
|
/* -------------------------------------------------------------------------- */
|
|
{
|
|
displayName: 'Task ID',
|
|
name: 'id',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'get',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* task:getAll */
|
|
/* -------------------------------------------------------------------------- */
|
|
{
|
|
displayName: 'Team Name or ID',
|
|
name: 'team',
|
|
type: 'options',
|
|
default: '',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'getAll',
|
|
],
|
|
},
|
|
},
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getTeams',
|
|
},
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Space Name or ID',
|
|
name: 'space',
|
|
type: 'options',
|
|
default: '',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'getAll',
|
|
],
|
|
},
|
|
},
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getSpaces',
|
|
loadOptionsDependsOn: [
|
|
'team',
|
|
],
|
|
},
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Folderless List',
|
|
name: 'folderless',
|
|
type: 'boolean',
|
|
default: false,
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'getAll',
|
|
],
|
|
},
|
|
},
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Folder Name or ID',
|
|
name: 'folder',
|
|
type: 'options',
|
|
default: '',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'getAll',
|
|
],
|
|
folderless: [
|
|
false,
|
|
],
|
|
},
|
|
},
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getFolders',
|
|
loadOptionsDependsOn: [
|
|
'space',
|
|
],
|
|
},
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'List Name or ID',
|
|
name: 'list',
|
|
type: 'options',
|
|
default: '',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'getAll',
|
|
],
|
|
folderless: [
|
|
true,
|
|
],
|
|
},
|
|
},
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getFolderlessLists',
|
|
loadOptionsDependsOn: [
|
|
'space',
|
|
],
|
|
},
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'List Name or ID',
|
|
name: 'list',
|
|
type: 'options',
|
|
default: '',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'getAll',
|
|
],
|
|
folderless: [
|
|
false,
|
|
],
|
|
},
|
|
},
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getLists',
|
|
loadOptionsDependsOn: [
|
|
'folder',
|
|
],
|
|
},
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Return All',
|
|
name: 'returnAll',
|
|
type: 'boolean',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'getAll',
|
|
],
|
|
},
|
|
},
|
|
default: true,
|
|
description: 'Whether to return all results or only up to a given limit',
|
|
},
|
|
{
|
|
displayName: 'Limit',
|
|
name: 'limit',
|
|
type: 'number',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'getAll',
|
|
],
|
|
returnAll: [
|
|
false,
|
|
],
|
|
},
|
|
},
|
|
typeOptions: {
|
|
minValue: 1,
|
|
maxValue: 100,
|
|
},
|
|
default: 50,
|
|
description: 'Max number of results to return',
|
|
},
|
|
{
|
|
displayName: 'Filters',
|
|
name: 'filters',
|
|
type: 'collection',
|
|
placeholder: 'Add Filter',
|
|
default: {},
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'getAll',
|
|
],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
displayName: 'Archived',
|
|
name: 'archived',
|
|
type: 'boolean',
|
|
default: false,
|
|
},
|
|
{
|
|
displayName: 'Assignees',
|
|
name: 'assignees',
|
|
type: 'multiOptions',
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getAssignees',
|
|
loadOptionsDependsOn: [
|
|
'list',
|
|
],
|
|
},
|
|
|
|
default: [],
|
|
},
|
|
{
|
|
displayName: 'Custom Fields',
|
|
name: 'customFieldsUi',
|
|
placeholder: 'Add Custom Field',
|
|
type: 'fixedCollection',
|
|
typeOptions: {
|
|
multipleValues: true,
|
|
},
|
|
description: 'Filter by custom fields',
|
|
default: {},
|
|
options: [
|
|
{
|
|
name: 'customFieldsValues',
|
|
displayName: 'Custom Field',
|
|
values: [
|
|
{
|
|
displayName: 'Field Name or ID',
|
|
name: 'fieldId',
|
|
type: 'options',
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getCustomFields',
|
|
},
|
|
default: '',
|
|
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/nodes/expressions.html#expressions">expression</a>.',
|
|
},
|
|
{
|
|
displayName: 'Operator',
|
|
name: 'operator',
|
|
type: 'options',
|
|
options: [
|
|
{
|
|
name: '!=',
|
|
value: '!=',
|
|
},
|
|
{
|
|
name: '<',
|
|
value: '<',
|
|
},
|
|
{
|
|
name: '<=',
|
|
value: '<=',
|
|
},
|
|
{
|
|
name: '>',
|
|
value: '>',
|
|
},
|
|
{
|
|
name: '>=',
|
|
value: '>=',
|
|
},
|
|
{
|
|
name: 'Equal',
|
|
value: 'equal',
|
|
},
|
|
{
|
|
name: 'Is Not Null',
|
|
value: 'IS NOT NULL',
|
|
},
|
|
{
|
|
name: 'Is Null',
|
|
value: 'IS NULL',
|
|
},
|
|
],
|
|
default: 'equal',
|
|
description: 'The value to set on custom field',
|
|
},
|
|
{
|
|
displayName: 'Value',
|
|
name: 'value',
|
|
type: 'string',
|
|
displayOptions: {
|
|
hide: {
|
|
operator: [
|
|
'IS NULL',
|
|
'IS NOT NULL',
|
|
],
|
|
},
|
|
},
|
|
default: '',
|
|
description: 'The value to set on custom field',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
displayName: 'Date Created Greater Than',
|
|
name: 'dateCreatedGt',
|
|
type: 'dateTime',
|
|
default: '',
|
|
description: 'Filter date created greater',
|
|
},
|
|
{
|
|
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',
|
|
},
|
|
{
|
|
displayName: 'Include Closed',
|
|
name: 'includeClosed',
|
|
type: 'boolean',
|
|
default: false,
|
|
description: 'The response does by default not include closed tasks. Set this to true and dont send a status filter to include closed tasks.',
|
|
},
|
|
{
|
|
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',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
displayName: 'Statuses',
|
|
name: 'statuses',
|
|
type: 'multiOptions',
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getStatuses',
|
|
loadOptionsDependsOn: [
|
|
'list',
|
|
],
|
|
},
|
|
default: [],
|
|
},
|
|
{
|
|
displayName: 'Subtasks',
|
|
name: 'subtasks',
|
|
type: 'boolean',
|
|
default: false,
|
|
description: 'Include subtasks, default false',
|
|
},
|
|
{
|
|
displayName: 'Tags',
|
|
name: 'tags',
|
|
type: 'multiOptions',
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getTags',
|
|
loadOptionsDependsOn: [
|
|
'space',
|
|
],
|
|
},
|
|
default: [],
|
|
description: 'The array of tags applied to this task',
|
|
},
|
|
],
|
|
},
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* task:delete */
|
|
/* -------------------------------------------------------------------------- */
|
|
{
|
|
displayName: 'Task ID',
|
|
name: 'id',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'delete',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* task:member */
|
|
/* -------------------------------------------------------------------------- */
|
|
{
|
|
displayName: 'Task ID',
|
|
name: 'id',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'member',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
displayName: 'Return All',
|
|
name: 'returnAll',
|
|
type: 'boolean',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'member',
|
|
],
|
|
},
|
|
},
|
|
default: true,
|
|
description: 'Whether to return all results or only up to a given limit',
|
|
},
|
|
{
|
|
displayName: 'Limit',
|
|
name: 'limit',
|
|
type: 'number',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'member',
|
|
],
|
|
returnAll: [
|
|
false,
|
|
],
|
|
},
|
|
},
|
|
typeOptions: {
|
|
minValue: 1,
|
|
maxValue: 100,
|
|
},
|
|
default: 50,
|
|
description: 'Max number of results to return',
|
|
},
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* task:setCustomField */
|
|
/* -------------------------------------------------------------------------- */
|
|
{
|
|
displayName: 'Task ID',
|
|
name: 'task',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'setCustomField',
|
|
],
|
|
},
|
|
},
|
|
description: 'The ID of the task to add custom field to',
|
|
},
|
|
{
|
|
displayName: 'Field ID',
|
|
name: 'field',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'setCustomField',
|
|
],
|
|
},
|
|
},
|
|
description: 'The ID of the field to add custom field to',
|
|
},
|
|
{
|
|
displayName: 'Value Is JSON',
|
|
name: 'jsonParse',
|
|
type: 'boolean',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'setCustomField',
|
|
],
|
|
},
|
|
},
|
|
default: false,
|
|
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.',
|
|
},
|
|
{
|
|
displayName: 'Value',
|
|
name: 'value',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'task',
|
|
],
|
|
operation: [
|
|
'setCustomField',
|
|
],
|
|
},
|
|
},
|
|
description: 'The value to set on custom field',
|
|
},
|
|
];
|