diff --git a/packages/nodes-base/nodes/ClickUp/ChecklistDescription.ts b/packages/nodes-base/nodes/ClickUp/ChecklistDescription.ts index 3884a8ea47..517d2946b5 100644 --- a/packages/nodes-base/nodes/ClickUp/ChecklistDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/ChecklistDescription.ts @@ -43,7 +43,7 @@ export const checklistFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Task ID', - name: 'taskId', + name: 'task', type: 'string', default: '', displayOptions: { @@ -80,7 +80,7 @@ export const checklistFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Checklist ID', - name: 'checklistId', + name: 'checklist', type: 'string', default: '', displayOptions: { @@ -100,7 +100,7 @@ export const checklistFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Checklist ID', - name: 'checklistId', + name: 'checklist', type: 'string', default: '', displayOptions: { diff --git a/packages/nodes-base/nodes/ClickUp/ChecklistItemDescription.ts b/packages/nodes-base/nodes/ClickUp/ChecklistItemDescription.ts index 46d4de3bc7..e15fb52919 100644 --- a/packages/nodes-base/nodes/ClickUp/ChecklistItemDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/ChecklistItemDescription.ts @@ -43,7 +43,7 @@ export const checklistItemFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Checklist ID', - name: 'checklistId', + name: 'checklist', type: 'string', default: '', displayOptions: { @@ -94,7 +94,7 @@ export const checklistItemFields = [ options: [ { displayName: 'Assignee ID', - name: 'assigneeId', + name: 'assignee', type: 'string', default: '', }, @@ -105,7 +105,7 @@ export const checklistItemFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Checklist ID', - name: 'checklistId', + name: 'checklist', type: 'string', default: '', displayOptions: { @@ -122,7 +122,7 @@ export const checklistItemFields = [ }, { displayName: 'Checklist Item ID', - name: 'checklistItemId', + name: 'checklistItem', type: 'string', default: '', displayOptions: { @@ -142,7 +142,7 @@ export const checklistItemFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Checklist ID', - name: 'checklistId', + name: 'checklist', type: 'string', default: '', displayOptions: { @@ -159,7 +159,7 @@ export const checklistItemFields = [ }, { displayName: 'Checklist Item ID', - name: 'checklistItemId', + name: 'checklistItem', type: 'string', default: '', displayOptions: { @@ -193,7 +193,7 @@ export const checklistItemFields = [ options: [ { displayName: 'Assignee ID', - name: 'assigneeId', + name: 'assignee', type: 'string', default: '', }, @@ -205,7 +205,7 @@ export const checklistItemFields = [ }, { displayName: 'Parent Checklist Item ID', - name: 'parentId', + name: 'parent', type: 'string', default: '', description: 'Checklist item that you want to nest the target checklist item underneath.', diff --git a/packages/nodes-base/nodes/ClickUp/ClickUp.node.ts b/packages/nodes-base/nodes/ClickUp/ClickUp.node.ts index 8c7c006c5d..09d9d183b1 100644 --- a/packages/nodes-base/nodes/ClickUp/ClickUp.node.ts +++ b/packages/nodes-base/nodes/ClickUp/ClickUp.node.ts @@ -211,7 +211,7 @@ export class ClickUp implements INodeType { // Get all the available spaces to display them to user so that he can // select them easily async getSpaces(this: ILoadOptionsFunctions): Promise { - const teamId = this.getCurrentNodeParameter('teamId') as string; + const teamId = this.getCurrentNodeParameter('team') as string; const returnData: INodePropertyOptions[] = []; const { spaces } = await clickupApiRequest.call(this, 'GET', `/team/${teamId}/space`); for (const space of spaces) { @@ -227,7 +227,7 @@ export class ClickUp implements INodeType { // Get all the available folders to display them to user so that he can // select them easily async getFolders(this: ILoadOptionsFunctions): Promise { - const spaceId = this.getCurrentNodeParameter('spaceId') as string; + const spaceId = this.getCurrentNodeParameter('space') as string; const returnData: INodePropertyOptions[] = []; const { folders } = await clickupApiRequest.call(this, 'GET', `/space/${spaceId}/folder`); for (const folder of folders) { @@ -243,7 +243,7 @@ export class ClickUp implements INodeType { // Get all the available lists to display them to user so that he can // select them easily async getLists(this: ILoadOptionsFunctions): Promise { - const folderId = this.getCurrentNodeParameter('folderId') as string; + const folderId = this.getCurrentNodeParameter('folder') as string; const returnData: INodePropertyOptions[] = []; const { lists } = await clickupApiRequest.call(this, 'GET', `/folder/${folderId}/list`); for (const list of lists) { @@ -259,7 +259,7 @@ export class ClickUp implements INodeType { // Get all the available lists without a folder to display them to user so that he can // select them easily async getFolderlessLists(this: ILoadOptionsFunctions): Promise { - const spaceId = this.getCurrentNodeParameter('spaceId') as string; + const spaceId = this.getCurrentNodeParameter('space') as string; const returnData: INodePropertyOptions[] = []; const { lists } = await clickupApiRequest.call(this, 'GET', `/space/${spaceId}/list`); for (const list of lists) { @@ -275,7 +275,7 @@ export class ClickUp implements INodeType { // Get all the available assignees to display them to user so that he can // select them easily async getAssignees(this: ILoadOptionsFunctions): Promise { - const listId = this.getCurrentNodeParameter('listId') as string; + const listId = this.getCurrentNodeParameter('list') as string; const returnData: INodePropertyOptions[] = []; const { members } = await clickupApiRequest.call(this, 'GET', `/list/${listId}/member`); for (const member of members) { @@ -291,7 +291,7 @@ export class ClickUp implements INodeType { // Get all the available tags to display them to user so that he can // select them easily async getTags(this: ILoadOptionsFunctions): Promise { - const spaceId = this.getCurrentNodeParameter('spaceId') as string; + const spaceId = this.getCurrentNodeParameter('space') as string; const returnData: INodePropertyOptions[] = []; const { tags } = await clickupApiRequest.call(this, 'GET', `/space/${spaceId}/tag`); for (const tag of tags) { @@ -307,7 +307,7 @@ export class ClickUp implements INodeType { // Get all the available tags to display them to user so that he can // select them easily async getStatuses(this: ILoadOptionsFunctions): Promise { - const listId = this.getCurrentNodeParameter('listId') as string; + const listId = this.getCurrentNodeParameter('list') as string; const returnData: INodePropertyOptions[] = []; const { statuses } = await clickupApiRequest.call(this, 'GET', `/list/${listId}`); for (const status of statuses) { @@ -336,7 +336,7 @@ export class ClickUp implements INodeType { for (let i = 0; i < length; i++) { if (resource === 'checklist') { if (operation === 'create') { - const taskId = this.getNodeParameter('taskId', i) as string; + const taskId = this.getNodeParameter('task', i) as string; const name = this.getNodeParameter('name', i) as string; const body: IDataObject = { name, @@ -345,12 +345,12 @@ export class ClickUp implements INodeType { responseData = responseData.checklist; } if (operation === 'delete') { - const checklistId = this.getNodeParameter('checklistId', i) as string; + const checklistId = this.getNodeParameter('checklist', i) as string; responseData = await clickupApiRequest.call(this, 'DELETE', `/checklist/${checklistId}`); responseData = { success: true }; } if (operation === 'update') { - const checklistId = this.getNodeParameter('checklistId', i) as string; + const checklistId = this.getNodeParameter('checklist', i) as string; const updateFields = this.getNodeParameter('updateFields', i) as IDataObject; const body: IDataObject = {}; if (updateFields.name) { @@ -365,7 +365,7 @@ export class ClickUp implements INodeType { } if (resource === 'checklistItem') { if (operation === 'create') { - const checklistId = this.getNodeParameter('checklistId', i) as string; + const checklistId = this.getNodeParameter('checklist', i) as string; const name = this.getNodeParameter('name', i) as string; const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject; const body: IDataObject = { @@ -378,24 +378,24 @@ export class ClickUp implements INodeType { responseData = responseData.checklist; } if (operation === 'delete') { - const checklistId = this.getNodeParameter('checklistId', i) as string; - const checklistItemId = this.getNodeParameter('checklistItemId', i) as string; + const checklistId = this.getNodeParameter('checklist', i) as string; + const checklistItemId = this.getNodeParameter('checklistItem', i) as string; responseData = await clickupApiRequest.call(this, 'DELETE', `/checklist/${checklistId}/checklist_item/${checklistItemId}`); responseData = { success: true }; } if (operation === 'update') { - const checklistId = this.getNodeParameter('checklistId', i) as string; - const checklistItemId = this.getNodeParameter('checklistItemId', i) as string; + const checklistId = this.getNodeParameter('checklist', i) as string; + const checklistItemId = this.getNodeParameter('checklistItem', i) as string; const updateFields = this.getNodeParameter('updateFields', i) as IDataObject; const body: IDataObject = {}; if (updateFields.name) { body.name = updateFields.name as string; } - if (updateFields.parentId) { - body.parent = updateFields.parentId as string; + if (updateFields.parent) { + body.parent = updateFields.parent as string; } - if (updateFields.assigneeId) { - body.assignee = parseInt(updateFields.assigneeId as string, 10); + if (updateFields.assignee) { + body.assignee = parseInt(updateFields.assignee as string, 10); } if (updateFields.resolved) { body.resolved = updateFields.resolved as boolean; @@ -413,8 +413,8 @@ export class ClickUp implements INodeType { const body: IDataObject = { comment_text: commentText, }; - if (additionalFields.assigneeId) { - body.assigneeId = additionalFields.assigneeId as string; + if (additionalFields.assignee) { + body.assigneeId = additionalFields.assignee as string; } if (additionalFields.notifyAll) { body.notify_all = additionalFields.notifyAll as boolean; @@ -422,7 +422,7 @@ export class ClickUp implements INodeType { responseData = await clickupApiRequest.call(this, 'POST', `/${resource}/${id}/comment`, body); } if (operation === 'delete') { - const commentId = this.getNodeParameter('commentId', i) as string; + const commentId = this.getNodeParameter('comment', i) as string; responseData = await clickupApiRequest.call(this, 'DELETE', `/comment/${commentId}`); responseData = { success: true }; } @@ -435,24 +435,25 @@ export class ClickUp implements INodeType { responseData = responseData.splice(0, qs.limit); } if (operation === 'update') { - const commentId = this.getNodeParameter('commentId', i) as string; + const commentId = this.getNodeParameter('comment', i) as string; const updateFields = this.getNodeParameter('updateFields', i) as IDataObject; const body: IDataObject = {}; if (updateFields.commentText) { body.comment_text = updateFields.commentText as string; } - if (updateFields.assigneeId) { - body.assignee = parseInt(updateFields.assigneeId as string, 10); + if (updateFields.assignee) { + body.assignee = parseInt(updateFields.assignee as string, 10); } if (updateFields.resolved) { body.resolved = updateFields.resolved as boolean; } responseData = await clickupApiRequest.call(this, 'PUT', `/comment/${commentId}`, body); + responseData = { success: true }; } } if (resource === 'folder') { if (operation === 'create') { - const spaceId = this.getNodeParameter('spaceId', i) as string; + const spaceId = this.getNodeParameter('space', i) as string; const name = this.getNodeParameter('name', i) as string; const body: IDataObject = { name, @@ -460,17 +461,17 @@ export class ClickUp implements INodeType { responseData = await clickupApiRequest.call(this, 'POST', `/space/${spaceId}/folder`, body); } if (operation === 'delete') { - const folderId = this.getNodeParameter('folderId', i) as string; + const folderId = this.getNodeParameter('folder', i) as string; responseData = await clickupApiRequest.call(this, 'DELETE', `/folder/${folderId}`); responseData = { success: true }; } if (operation === 'get') { - const folderId = this.getNodeParameter('folderId', i) as string; + const folderId = this.getNodeParameter('folder', i) as string; responseData = await clickupApiRequest.call(this, 'GET', `/folder/${folderId}`); } if (operation === 'getAll') { const filters = this.getNodeParameter('filters', i) as IDataObject; - const spaceId = this.getNodeParameter('spaceId', i) as string; + const spaceId = this.getNodeParameter('space', i) as string; if (filters.archived) { qs.archived = filters.archived as boolean; } @@ -480,7 +481,7 @@ export class ClickUp implements INodeType { responseData = responseData.splice(0, qs.limit); } if (operation === 'update') { - const folderId = this.getNodeParameter('folderId', i) as string; + const folderId = this.getNodeParameter('folder', i) as string; const updateFields = this.getNodeParameter('updateFields', i) as IDataObject; const body: IDataObject = {}; if (updateFields.name) { @@ -491,7 +492,7 @@ export class ClickUp implements INodeType { } if (resource === 'goal') { if (operation === 'create') { - const teamId = this.getNodeParameter('teamId', i) as string; + const teamId = this.getNodeParameter('team', i) as string; const name = this.getNodeParameter('name', i) as string; const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject; const body: IDataObject = { @@ -516,17 +517,17 @@ export class ClickUp implements INodeType { responseData = responseData.goal; } if (operation === 'delete') { - const goalId = this.getNodeParameter('goalId', i) as string; + const goalId = this.getNodeParameter('goal', i) as string; responseData = await clickupApiRequest.call(this, 'DELETE', `/goal/${goalId}`); responseData = { success: true }; } if (operation === 'get') { - const goalId = this.getNodeParameter('goalId', i) as string; + const goalId = this.getNodeParameter('goal', i) as string; responseData = await clickupApiRequest.call(this, 'GET', `/goal/${goalId}`); responseData = responseData.goal; } if (operation === 'getAll') { - const teamId = this.getNodeParameter('teamId', i) as string; + const teamId = this.getNodeParameter('team', i) as string; qs.limit = this.getNodeParameter('limit', i) as number; responseData = await clickupApiRequest.call(this, 'GET', `/team/${teamId}/goal`, {}, qs); responseData = responseData.goals; @@ -534,7 +535,7 @@ export class ClickUp implements INodeType { } if (operation === 'update') { - const goalId = this.getNodeParameter('goalId', i) as string; + const goalId = this.getNodeParameter('goal', i) as string; const updateFields = this.getNodeParameter('updateFields', i) as IDataObject; const body: IDataObject = {}; if (updateFields.name) { @@ -561,7 +562,7 @@ export class ClickUp implements INodeType { } if (resource === 'goalKeyResult') { if (operation === 'create') { - const goalId = this.getNodeParameter('goalId', i) as string; + const goalId = this.getNodeParameter('goal', i) as string; const name = this.getNodeParameter('name', i) as string; const type = this.getNodeParameter('type', i) as string; const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject; @@ -591,12 +592,12 @@ export class ClickUp implements INodeType { responseData = responseData.key_result; } if (operation === 'delete') { - const keyResultId = this.getNodeParameter('keyResultId', i) as string; + const keyResultId = this.getNodeParameter('keyResult', i) as string; responseData = await clickupApiRequest.call(this, 'DELETE', `/key_result/${keyResultId}`); responseData = { success: true }; } if (operation === 'update') { - const keyResultId = this.getNodeParameter('keyResultId', i) as string; + const keyResultId = this.getNodeParameter('keyResult', i) as string; const updateFields = this.getNodeParameter('updateFields', i) as IDataObject; const body: IDataObject = {}; if (updateFields.name) { @@ -623,7 +624,7 @@ export class ClickUp implements INodeType { } if (resource === 'guest') { if (operation === 'create') { - const teamId = this.getNodeParameter('teamId', i) as string; + const teamId = this.getNodeParameter('team', i) as string; const email = this.getNodeParameter('email', i) as string; const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject; const body: IDataObject = { @@ -642,20 +643,20 @@ export class ClickUp implements INodeType { responseData = responseData.team; } if (operation === 'delete') { - const teamId = this.getNodeParameter('teamId', i) as string; - const guestId = this.getNodeParameter('guestId', i) as string; + const teamId = this.getNodeParameter('team', i) as string; + const guestId = this.getNodeParameter('guest', i) as string; responseData = await clickupApiRequest.call(this, 'DELETE', `/team/${teamId}/guest/${guestId}`); responseData = { success: true }; } if (operation === 'get') { - const teamId = this.getNodeParameter('teamId', i) as string; - const guestId = this.getNodeParameter('guestId', i) as string; + const teamId = this.getNodeParameter('team', i) as string; + const guestId = this.getNodeParameter('guest', i) as string; responseData = await clickupApiRequest.call(this, 'GET', `/team/${teamId}/guest/${guestId}`); responseData = responseData.team; } if (operation === 'update') { - const teamId = this.getNodeParameter('teamId', i) as string; - const guestId = this.getNodeParameter('guestId', i) as string; + const teamId = this.getNodeParameter('team', i) as string; + const guestId = this.getNodeParameter('guest', i) as string; const updateFields = this.getNodeParameter('updateFields', i) as IDataObject; const body: IDataObject = {}; if (updateFields.username) { @@ -676,7 +677,7 @@ export class ClickUp implements INodeType { } if (resource === 'task') { if (operation === 'create') { - const listId = this.getNodeParameter('listId', i) as string; + const listId = this.getNodeParameter('list', i) as string; const name = this.getNodeParameter('name', i) as string; const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject; const body: ITask = { @@ -732,9 +733,14 @@ export class ClickUp implements INodeType { responseData = await clickupApiRequest.call(this, 'POST', `/list/${listId}/task`, body); } if (operation === 'update') { - const taskId = this.getNodeParameter('taskId', i) as string; + const taskId = this.getNodeParameter('id', i) as string; const updateFields = this.getNodeParameter('updateFields', i) as IDataObject; - const body: ITask = {}; + const body: ITask = { + assignees: { + add: [], + rem: [], + }, + }; if (updateFields.content) { body.content = updateFields.content as string; } @@ -765,6 +771,17 @@ export class ClickUp implements INodeType { if (updateFields.parentId) { body.parent = updateFields.parentId as string; } + if (updateFields.addAssignees) { + //@ts-ignore + body.assignees.add = ((updateFields.addAssignees as string).split(',') as string[]).map((e: string) => parseInt(e, 10)); + } + if (updateFields.removeAssignees) { + //@ts-ignore + body.assignees.rem = ((updateFields.removeAssignees as string).split(',') as string[]).map((e: string) => parseInt(e, 10)); + } + if (updateFields.status) { + body.status = updateFields.status as string; + } if (updateFields.markdownContent) { delete body.content; body.markdown_content = updateFields.content as string; @@ -772,7 +789,7 @@ export class ClickUp implements INodeType { responseData = await clickupApiRequest.call(this, 'PUT', `/task/${taskId}`, body); } if (operation === 'get') { - const taskId = this.getNodeParameter('taskId', i) as string; + const taskId = this.getNodeParameter('id', i) as string; responseData = await clickupApiRequest.call(this, 'GET', `/task/${taskId}`); } if (operation === 'getAll') { @@ -817,7 +834,7 @@ export class ClickUp implements INodeType { if (filters.dateUpdatedLt) { qs.date_updated_lt = new Date(filters.dateUpdatedLt as string).getTime(); } - const listId = this.getNodeParameter('listId', i) as string; + const listId = this.getNodeParameter('list', i) as string; if (returnAll === true) { responseData = await clickupApiRequestAllItems.call(this, 'tasks', 'GET', `/list/${listId}/task`, {}, qs); } else { @@ -827,8 +844,8 @@ export class ClickUp implements INodeType { } } if (operation === 'setCustomField') { - const taskId = this.getNodeParameter('taskId', i) as string; - const fieldId = this.getNodeParameter('fieldId', i) as string; + const taskId = this.getNodeParameter('task', i) as string; + const fieldId = this.getNodeParameter('field', i) as string; const value = this.getNodeParameter('value', i) as string; const jsonParse = this.getNodeParameter('jsonParse', i) as boolean; @@ -848,14 +865,14 @@ export class ClickUp implements INodeType { responseData = await clickupApiRequest.call(this, 'POST', `/task/${taskId}/field/${fieldId}`, body); } if (operation === 'delete') { - const taskId = this.getNodeParameter('taskId', i) as string; + const taskId = this.getNodeParameter('id', i) as string; responseData = await clickupApiRequest.call(this, 'DELETE', `/task/${taskId}`, {}); responseData = { success: true }; } } if (resource === 'taskDependency') { if (operation === 'create') { - const taskId = this.getNodeParameter('taskId', i) as string; + const taskId = this.getNodeParameter('task', i) as string; const dependsOn = this.getNodeParameter('dependsOn', i) as string; const dependencyOf = this.getNodeParameter('dependencyOf', i) as string; if (dependencyOf !== '' && dependsOn !== '' ) { @@ -872,7 +889,7 @@ export class ClickUp implements INodeType { responseData = { success: true }; } if (operation === 'delete') { - const taskId = this.getNodeParameter('taskId', i) as string; + const taskId = this.getNodeParameter('task', i) as string; const dependsOn = this.getNodeParameter('dependsOn', i) as string; const dependencyOf = this.getNodeParameter('dependencyOf', i) as string; if (dependencyOf !== '' && dependsOn !== '' ) { @@ -890,7 +907,7 @@ export class ClickUp implements INodeType { } if (resource === 'timeTracking') { if (operation === 'log') { - const taskId = this.getNodeParameter('taskId', i) as string; + const taskId = this.getNodeParameter('task', i) as string; const type = this.getNodeParameter('type', i) as string; const body: IDataObject = {}; if (type === 'fromTo') { @@ -905,21 +922,21 @@ export class ClickUp implements INodeType { responseData = await clickupApiRequest.call(this, 'POST', `/task/${taskId}/time`, body); } if (operation === 'delete') { - const taskId = this.getNodeParameter('taskId', i) as string; - const intervalId = this.getNodeParameter('intervalId', i) as string; + const taskId = this.getNodeParameter('task', i) as string; + const intervalId = this.getNodeParameter('interval', i) as string; responseData = await clickupApiRequest.call(this, 'DELETE', `/task/${taskId}/time/${intervalId}`); responseData = { success: true }; } if (operation === 'getAll') { - const taskId = this.getNodeParameter('taskId', i) as string; + const taskId = this.getNodeParameter('task', i) as string; qs.limit = this.getNodeParameter('limit', i) as number; responseData = await clickupApiRequest.call(this, 'GET', `/task/${taskId}/time`, {}, qs); responseData = responseData.data; responseData = responseData.splice(0, qs.limit); } if (operation === 'update') { - const taskId = this.getNodeParameter('taskId', i) as string; - const intervalId = this.getNodeParameter('intervalId', i) as string; + const taskId = this.getNodeParameter('task', i) as string; + const intervalId = this.getNodeParameter('interval', i) as string; const type = this.getNodeParameter('type', i) as string; const body: IDataObject = {}; if (type === 'fromTo') { @@ -937,7 +954,7 @@ export class ClickUp implements INodeType { } if (resource === 'list') { if (operation === 'create') { - const spaceId = this.getNodeParameter('spaceId', i) as string; + const spaceId = this.getNodeParameter('space', i) as string; const folderless = this.getNodeParameter('folderless', i) as string; const name = this.getNodeParameter('name', i) as string; const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject; @@ -965,34 +982,34 @@ export class ClickUp implements INodeType { if (folderless) { responseData = await clickupApiRequest.call(this, 'POST', `/space/${spaceId}/list`, body); } else { - const folderId = this.getNodeParameter('folderId', i) as string; + const folderId = this.getNodeParameter('folder', i) as string; responseData = await clickupApiRequest.call(this, 'POST', `/folder/${folderId}/list`, body); } } if (operation === 'customFields') { - const listId = this.getNodeParameter('listId', i) as string; + const listId = this.getNodeParameter('list', i) as string; responseData = await clickupApiRequest.call(this, 'GET', `/list/${listId}/field`); responseData = responseData.fields; } if (operation === 'delete') { - const listId = this.getNodeParameter('listId', i) as string; + const listId = this.getNodeParameter('list', i) as string; responseData = await clickupApiRequest.call(this, 'DELETE', `/list/${listId}`); responseData = { success: true }; } if (operation === 'get') { - const listId = this.getNodeParameter('listId', i) as string; + const listId = this.getNodeParameter('list', i) as string; responseData = await clickupApiRequest.call(this, 'GET', `/list/${listId}`); } if (operation === 'getAll') { const filters = this.getNodeParameter('filters', i) as IDataObject; - const spaceId = this.getNodeParameter('spaceId', i) as string; + const spaceId = this.getNodeParameter('space', i) as string; const folderless = this.getNodeParameter('folderless', i) as boolean; if (filters.archived) { qs.archived = filters.archived as boolean; } let endpoint = `/space/${spaceId}/list`; if (!folderless) { - const folderId = this.getNodeParameter('folderId', i) as string; + const folderId = this.getNodeParameter('folder', i) as string; endpoint = `/folder/${folderId}/list`; } @@ -1002,7 +1019,7 @@ export class ClickUp implements INodeType { responseData = responseData.splice(0, qs.limit); } if (operation === 'update') { - const listId = this.getNodeParameter('listId', i) as string; + const listId = this.getNodeParameter('list', i) as string; const updateFields = this.getNodeParameter('updateFields', i) as IDataObject; const body: IList = {}; if (updateFields.name) { diff --git a/packages/nodes-base/nodes/ClickUp/CommentDescription.ts b/packages/nodes-base/nodes/ClickUp/CommentDescription.ts index 8c51de1b28..a8ef00d2f4 100644 --- a/packages/nodes-base/nodes/ClickUp/CommentDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/CommentDescription.ts @@ -128,7 +128,7 @@ export const commentFields = [ options: [ { displayName: 'Assignee ID', - name: 'assigneeId', + name: 'assignee', type: 'string', default: '', }, @@ -146,7 +146,7 @@ export const commentFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Comment ID', - name: 'commentId', + name: 'comment', type: 'string', default: '', displayOptions: { @@ -237,7 +237,7 @@ export const commentFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Comment ID', - name: 'commentId', + name: 'comment', type: 'string', default: '', displayOptions: { @@ -271,7 +271,7 @@ export const commentFields = [ options: [ { displayName: 'Assignee ID', - name: 'assigneeId', + name: 'assignee', type: 'string', default: '', }, diff --git a/packages/nodes-base/nodes/ClickUp/FolderDescription.ts b/packages/nodes-base/nodes/ClickUp/FolderDescription.ts index d73a908ec8..af9803c13e 100644 --- a/packages/nodes-base/nodes/ClickUp/FolderDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/FolderDescription.ts @@ -53,7 +53,7 @@ export const folderFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Team ID', - name: 'teamId', + name: 'team', type: 'options', default: '', displayOptions: { @@ -73,7 +73,7 @@ export const folderFields = [ }, { displayName: 'Space ID', - name: 'spaceId', + name: 'space', type: 'options', default: '', displayOptions: { @@ -89,7 +89,7 @@ export const folderFields = [ typeOptions: { loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ - 'teamId', + 'team', ] }, required: true, @@ -116,7 +116,7 @@ export const folderFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Team ID', - name: 'teamId', + name: 'team', type: 'options', default: '', displayOptions: { @@ -136,7 +136,7 @@ export const folderFields = [ }, { displayName: 'Space ID', - name: 'spaceId', + name: 'space', type: 'options', default: '', displayOptions: { @@ -152,14 +152,14 @@ export const folderFields = [ typeOptions: { loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ - 'teamId', + 'team', ] }, required: true, }, { displayName: 'Folder ID', - name: 'folderId', + name: 'folder', type: 'options', default: '', displayOptions: { @@ -175,7 +175,7 @@ export const folderFields = [ typeOptions: { loadOptionsMethod: 'getFolders', loadOptionsDependsOn: [ - 'spaceId', + 'space', ], }, required: true, @@ -185,7 +185,7 @@ export const folderFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Team ID', - name: 'teamId', + name: 'team', type: 'options', default: '', displayOptions: { @@ -205,7 +205,7 @@ export const folderFields = [ }, { displayName: 'Space ID', - name: 'spaceId', + name: 'space', type: 'options', default: '', displayOptions: { @@ -221,14 +221,14 @@ export const folderFields = [ typeOptions: { loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ - 'teamId', + 'team', ] }, required: true, }, { displayName: 'Folder ID', - name: 'folderId', + name: 'folder', type: 'options', default: '', displayOptions: { @@ -244,7 +244,7 @@ export const folderFields = [ typeOptions: { loadOptionsMethod: 'getFolders', loadOptionsDependsOn: [ - 'spaceId', + 'space', ], }, required: true, @@ -254,7 +254,7 @@ export const folderFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Team ID', - name: 'teamId', + name: 'team', type: 'options', default: '', displayOptions: { @@ -274,7 +274,7 @@ export const folderFields = [ }, { displayName: 'Space ID', - name: 'spaceId', + name: 'space', type: 'options', default: '', displayOptions: { @@ -290,7 +290,7 @@ export const folderFields = [ typeOptions: { loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ - 'teamId', + 'team', ] }, required: true, @@ -346,7 +346,7 @@ export const folderFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Team ID', - name: 'teamId', + name: 'team', type: 'options', default: '', displayOptions: { @@ -366,7 +366,7 @@ export const folderFields = [ }, { displayName: 'Space ID', - name: 'spaceId', + name: 'space', type: 'options', default: '', displayOptions: { @@ -382,14 +382,14 @@ export const folderFields = [ typeOptions: { loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ - 'teamId', + 'team', ] }, required: true, }, { displayName: 'Folder ID', - name: 'folderId', + name: 'folder', type: 'options', default: '', displayOptions: { @@ -405,7 +405,7 @@ export const folderFields = [ typeOptions: { loadOptionsMethod: 'getFolders', loadOptionsDependsOn: [ - 'spaceId', + 'space', ], }, required: true, diff --git a/packages/nodes-base/nodes/ClickUp/GoalDescription.ts b/packages/nodes-base/nodes/ClickUp/GoalDescription.ts index ee8047c962..06e0463f6c 100644 --- a/packages/nodes-base/nodes/ClickUp/GoalDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/GoalDescription.ts @@ -53,7 +53,7 @@ export const goalFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Team ID', - name: 'teamId', + name: 'team', type: 'options', default: '', displayOptions: { @@ -145,7 +145,7 @@ export const goalFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Goal ID', - name: 'goalId', + name: 'goal', type: 'string', default: '', displayOptions: { @@ -165,7 +165,7 @@ export const goalFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Goal ID', - name: 'goalId', + name: 'goal', type: 'string', default: '', displayOptions: { @@ -185,7 +185,7 @@ export const goalFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Team ID', - name: 'teamId', + name: 'team', type: 'options', default: '', displayOptions: { @@ -229,7 +229,7 @@ export const goalFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Goal ID', - name: 'goalId', + name: 'goal', type: 'string', default: '', displayOptions: { diff --git a/packages/nodes-base/nodes/ClickUp/GoalKeyResultDescription.ts b/packages/nodes-base/nodes/ClickUp/GoalKeyResultDescription.ts index d6df7e4236..41cb29cb17 100644 --- a/packages/nodes-base/nodes/ClickUp/GoalKeyResultDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/GoalKeyResultDescription.ts @@ -43,7 +43,7 @@ export const goalKeyResultFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Goal ID', - name: 'goalId', + name: 'goal', type: 'string', default: '', displayOptions: { @@ -150,7 +150,7 @@ export const goalKeyResultFields = [ typeOptions: { minValue: 0, }, - default: '', + default: 0, description: 'Required for Percentage, Automatic (when Task IDs or List IDs are filled), Number and Currency', }, { @@ -160,7 +160,7 @@ export const goalKeyResultFields = [ typeOptions: { minValue: 0, }, - default: '', + default: 0, description: 'Required for Percentage, Automatic (when Task IDs or List IDs are filled), Number and Currency', }, { @@ -183,7 +183,7 @@ export const goalKeyResultFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Key Result ID', - name: 'keyResultId', + name: 'keyResult', type: 'string', default: '', displayOptions: { @@ -203,7 +203,7 @@ export const goalKeyResultFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Key Result ID', - name: 'keyResultId', + name: 'keyResult', type: 'string', default: '', displayOptions: { @@ -257,7 +257,7 @@ export const goalKeyResultFields = [ typeOptions: { minValue: 0, }, - default: '', + default: 0, }, { displayName: 'Steps End', @@ -266,7 +266,7 @@ export const goalKeyResultFields = [ typeOptions: { minValue: 0, }, - default: '', + default: 0, }, { displayName: 'Steps Start', @@ -275,7 +275,7 @@ export const goalKeyResultFields = [ typeOptions: { minValue: 0, }, - default: '', + default: 0, }, { displayName: 'Unit', diff --git a/packages/nodes-base/nodes/ClickUp/GuestDescription.ts b/packages/nodes-base/nodes/ClickUp/GuestDescription.ts index db00a2fb9f..2f6ebd6da1 100644 --- a/packages/nodes-base/nodes/ClickUp/GuestDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/GuestDescription.ts @@ -48,7 +48,7 @@ export const guestFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Team ID', - name: 'teamId', + name: 'team', type: 'options', default: '', displayOptions: { @@ -124,7 +124,7 @@ export const guestFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Team ID', - name: 'teamId', + name: 'team', type: 'options', default: '', displayOptions: { @@ -144,7 +144,7 @@ export const guestFields = [ }, { displayName: 'Guest ID', - name: 'guestId', + name: 'guest', type: 'string', default: '', displayOptions: { @@ -164,7 +164,7 @@ export const guestFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Team ID', - name: 'teamId', + name: 'team', type: 'options', default: '', displayOptions: { @@ -184,7 +184,7 @@ export const guestFields = [ }, { displayName: 'Guest ID', - name: 'guestId', + name: 'guest', type: 'string', default: '', displayOptions: { @@ -204,7 +204,7 @@ export const guestFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Team ID', - name: 'teamId', + name: 'team', type: 'options', default: '', displayOptions: { @@ -224,7 +224,7 @@ export const guestFields = [ }, { displayName: 'Guest ID', - name: 'guestId', + name: 'guest', type: 'string', default: '', displayOptions: { diff --git a/packages/nodes-base/nodes/ClickUp/ListDescription.ts b/packages/nodes-base/nodes/ClickUp/ListDescription.ts index 23eec7073c..8fd4a8a13f 100644 --- a/packages/nodes-base/nodes/ClickUp/ListDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/ListDescription.ts @@ -58,7 +58,7 @@ export const listFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Team ID', - name: 'teamId', + name: 'team', type: 'options', default: '', displayOptions: { @@ -78,7 +78,7 @@ export const listFields = [ }, { displayName: 'Space ID', - name: 'spaceId', + name: 'space', type: 'options', default: '', displayOptions: { @@ -94,7 +94,7 @@ export const listFields = [ typeOptions: { loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ - 'teamId', + 'team', ] }, required: true, @@ -118,7 +118,7 @@ export const listFields = [ }, { displayName: 'Folder ID', - name: 'folderId', + name: 'folder', type: 'options', default: '', displayOptions: { @@ -137,7 +137,7 @@ export const listFields = [ typeOptions: { loadOptionsMethod: 'getFolders', loadOptionsDependsOn: [ - 'spaceId', + 'space', ], }, required: true, @@ -233,7 +233,7 @@ export const listFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Team', - name: 'teamId', + name: 'team', type: 'options', default: '', displayOptions: { @@ -253,7 +253,7 @@ export const listFields = [ }, { displayName: 'Space', - name: 'spaceId', + name: 'space', type: 'options', default: '', displayOptions: { @@ -293,7 +293,7 @@ export const listFields = [ }, { displayName: 'Folder', - name: 'folderId', + name: 'folder', type: 'options', default: '', displayOptions: { @@ -312,14 +312,14 @@ export const listFields = [ typeOptions: { loadOptionsMethod: 'getFolders', loadOptionsDependsOn: [ - 'spaceId', + 'space', ], }, required: true, }, { displayName: 'List', - name: 'listId', + name: 'list', type: 'options', default: '', displayOptions: { @@ -338,14 +338,14 @@ export const listFields = [ typeOptions: { loadOptionsMethod: 'getFolderlessLists', loadOptionsDependsOn: [ - 'spaceId', + 'space', ], }, required: true, }, { displayName: 'List', - name: 'listId', + name: 'list', type: 'options', default: '', displayOptions: { @@ -364,7 +364,7 @@ export const listFields = [ typeOptions: { loadOptionsMethod: 'getLists', loadOptionsDependsOn: [ - 'folderId', + 'folder', ] }, required: true, @@ -374,7 +374,7 @@ export const listFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Team ID', - name: 'teamId', + name: 'team', type: 'options', default: '', displayOptions: { @@ -394,7 +394,7 @@ export const listFields = [ }, { displayName: 'Space ID', - name: 'spaceId', + name: 'space', type: 'options', default: '', displayOptions: { @@ -410,7 +410,7 @@ export const listFields = [ typeOptions: { loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ - 'teamId', + 'team', ] }, required: true, @@ -434,7 +434,7 @@ export const listFields = [ }, { displayName: 'Folder ID', - name: 'folderId', + name: 'folder', type: 'options', default: '', displayOptions: { @@ -453,14 +453,14 @@ export const listFields = [ typeOptions: { loadOptionsMethod: 'getFolders', loadOptionsDependsOn: [ - 'spaceId', + 'space', ], }, required: true, }, { displayName: 'List ID', - name: 'listId', + name: 'list', type: 'string', default: '', displayOptions: { @@ -480,7 +480,7 @@ export const listFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Team ID', - name: 'teamId', + name: 'team', type: 'options', default: '', displayOptions: { @@ -500,7 +500,7 @@ export const listFields = [ }, { displayName: 'Space ID', - name: 'spaceId', + name: 'space', type: 'options', default: '', displayOptions: { @@ -516,7 +516,7 @@ export const listFields = [ typeOptions: { loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ - 'teamId', + 'team', ] }, required: true, @@ -540,7 +540,7 @@ export const listFields = [ }, { displayName: 'Folder ID', - name: 'folderId', + name: 'folder', type: 'options', default: '', displayOptions: { @@ -559,14 +559,14 @@ export const listFields = [ typeOptions: { loadOptionsMethod: 'getFolders', loadOptionsDependsOn: [ - 'spaceId', + 'space', ], }, required: true, }, { displayName: 'List ID', - name: 'listId', + name: 'list', type: 'string', default: '', displayOptions: { @@ -586,7 +586,7 @@ export const listFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Team ID', - name: 'teamId', + name: 'team', type: 'options', default: '', displayOptions: { @@ -606,7 +606,7 @@ export const listFields = [ }, { displayName: 'Space ID', - name: 'spaceId', + name: 'space', type: 'options', default: '', displayOptions: { @@ -622,7 +622,7 @@ export const listFields = [ typeOptions: { loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ - 'teamId', + 'team', ] }, required: true, @@ -646,7 +646,7 @@ export const listFields = [ }, { displayName: 'Folder ID', - name: 'folderId', + name: 'folder', type: 'options', default: '', displayOptions: { @@ -665,7 +665,7 @@ export const listFields = [ typeOptions: { loadOptionsMethod: 'getFolders', loadOptionsDependsOn: [ - 'spaceId', + 'space', ], }, required: true, @@ -721,7 +721,7 @@ export const listFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Team ID', - name: 'teamId', + name: 'team', type: 'options', default: '', displayOptions: { @@ -741,7 +741,7 @@ export const listFields = [ }, { displayName: 'Space ID', - name: 'spaceId', + name: 'space', type: 'options', default: '', displayOptions: { @@ -757,7 +757,7 @@ export const listFields = [ typeOptions: { loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ - 'teamId', + 'team', ] }, required: true, @@ -781,7 +781,7 @@ export const listFields = [ }, { displayName: 'Folder ID', - name: 'folderId', + name: 'folder', type: 'options', default: '', displayOptions: { @@ -800,14 +800,14 @@ export const listFields = [ typeOptions: { loadOptionsMethod: 'getFolders', loadOptionsDependsOn: [ - 'spaceId', + 'space', ], }, required: true, }, { displayName: 'List ID', - name: 'listId', + name: 'list', type: 'string', default: '', displayOptions: { diff --git a/packages/nodes-base/nodes/ClickUp/TaskDependencyDescription.ts b/packages/nodes-base/nodes/ClickUp/TaskDependencyDescription.ts index 97950263e8..8150394f8c 100644 --- a/packages/nodes-base/nodes/ClickUp/TaskDependencyDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/TaskDependencyDescription.ts @@ -38,7 +38,7 @@ export const taskDependencyFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Task ID', - name: 'taskId', + name: 'task', type: 'string', default: '', displayOptions: { @@ -90,7 +90,7 @@ export const taskDependencyFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Task ID', - name: 'taskId', + name: 'task', type: 'string', default: '', displayOptions: { diff --git a/packages/nodes-base/nodes/ClickUp/TaskDescription.ts b/packages/nodes-base/nodes/ClickUp/TaskDescription.ts index be0c7087f5..5d53390c1c 100644 --- a/packages/nodes-base/nodes/ClickUp/TaskDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/TaskDescription.ts @@ -58,7 +58,7 @@ export const taskFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Team ID', - name: 'teamId', + name: 'team', type: 'options', default: '', displayOptions: { @@ -78,7 +78,7 @@ export const taskFields = [ }, { displayName: 'Space ID', - name: 'spaceId', + name: 'space', type: 'options', default: '', displayOptions: { @@ -94,7 +94,7 @@ export const taskFields = [ typeOptions: { loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ - 'teamId', + 'team', ] }, required: true, @@ -118,7 +118,7 @@ export const taskFields = [ }, { displayName: 'Folder ID', - name: 'folderId', + name: 'folder', type: 'options', default: '', displayOptions: { @@ -137,14 +137,14 @@ export const taskFields = [ typeOptions: { loadOptionsMethod: 'getFolders', loadOptionsDependsOn: [ - 'spaceId', + 'space', ], }, required: true, }, { displayName: 'List ID', - name: 'listId', + name: 'list', type: 'options', default: '', displayOptions: { @@ -163,14 +163,14 @@ export const taskFields = [ typeOptions: { loadOptionsMethod: 'getFolderlessLists', loadOptionsDependsOn: [ - 'spaceId', + 'space', ], }, required: true, }, { displayName: 'List ID', - name: 'listId', + name: 'list', type: 'options', default: '', displayOptions: { @@ -189,7 +189,7 @@ export const taskFields = [ typeOptions: { loadOptionsMethod: 'getLists', loadOptionsDependsOn: [ - 'folderId', + 'folder', ] }, required: true, @@ -234,7 +234,7 @@ export const taskFields = [ name: 'assignees', type: 'multiOptions', loadOptionsDependsOn: [ - 'listId', + 'list', ], typeOptions: { loadOptionsMethod: 'getAssignees', @@ -313,7 +313,7 @@ export const taskFields = [ name: 'status', type: 'options', loadOptionsDependsOn: [ - 'listId', + 'list', ], typeOptions: { loadOptionsMethod: 'getStatuses', @@ -325,7 +325,7 @@ export const taskFields = [ name: 'tags', type: 'multiOptions', loadOptionsDependsOn: [ - 'spaceId', + 'space', ], typeOptions: { loadOptionsMethod: 'getTags', @@ -347,7 +347,7 @@ export const taskFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Task ID', - name: 'taskId', + name: 'id', type: 'string', default: '', required: true, @@ -380,6 +380,13 @@ export const taskFields = [ }, }, options: [ + { + displayName: 'Add Assignees', + name: 'addAssignees', + type: 'string', + default: '', + description: 'Assignees IDs. Multiple ca be added separated by comma' + }, { displayName: 'Content', name: 'content', @@ -436,6 +443,20 @@ export const taskFields = [ 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: '', + description: 'status' + }, { displayName: 'Start Date Time', name: 'startDateTime', @@ -457,7 +478,7 @@ export const taskFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Task ID', - name: 'taskId', + name: 'id', type: 'string', default: '', required: true, @@ -478,7 +499,7 @@ export const taskFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Team ID', - name: 'teamId', + name: 'team', type: 'options', default: '', displayOptions: { @@ -498,7 +519,7 @@ export const taskFields = [ }, { displayName: 'Space ID', - name: 'spaceId', + name: 'space', type: 'options', default: '', displayOptions: { @@ -514,7 +535,7 @@ export const taskFields = [ typeOptions: { loadOptionsMethod: 'getSpaces', loadOptionsDependsOn: [ - 'teamId', + 'team', ] }, required: true, @@ -538,7 +559,7 @@ export const taskFields = [ }, { displayName: 'Folder ID', - name: 'folderId', + name: 'folder', type: 'options', default: '', displayOptions: { @@ -557,14 +578,14 @@ export const taskFields = [ typeOptions: { loadOptionsMethod: 'getFolders', loadOptionsDependsOn: [ - 'spaceId', + 'space', ], }, required: true, }, { displayName: 'List ID', - name: 'listId', + name: 'list', type: 'options', default: '', displayOptions: { @@ -583,14 +604,14 @@ export const taskFields = [ typeOptions: { loadOptionsMethod: 'getFolderlessLists', loadOptionsDependsOn: [ - 'spaceId', + 'space', ], }, required: true, }, { displayName: 'List ID', - name: 'listId', + name: 'list', type: 'options', default: '', displayOptions: { @@ -609,7 +630,7 @@ export const taskFields = [ typeOptions: { loadOptionsMethod: 'getLists', loadOptionsDependsOn: [ - 'folderId', + 'folder', ] }, required: true, @@ -683,7 +704,7 @@ export const taskFields = [ name: 'assignees', type: 'multiOptions', loadOptionsDependsOn: [ - 'listId', + 'list', ], typeOptions: { loadOptionsMethod: 'getAssignees', @@ -769,7 +790,7 @@ export const taskFields = [ name: 'statuses', type: 'multiOptions', loadOptionsDependsOn: [ - 'listId', + 'list', ], typeOptions: { loadOptionsMethod: 'getStatuses', @@ -788,7 +809,7 @@ export const taskFields = [ name: 'tags', type: 'multiOptions', loadOptionsDependsOn: [ - 'spaceId', + 'space', ], typeOptions: { loadOptionsMethod: 'getTags', @@ -803,7 +824,7 @@ export const taskFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Task ID', - name: 'taskId', + name: 'id', type: 'string', default: '', required: true, @@ -824,7 +845,7 @@ export const taskFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Task ID', - name: 'taskId', + name: 'task', type: 'string', default: '', required: true, @@ -842,7 +863,7 @@ export const taskFields = [ }, { displayName: 'Field ID', - name: 'fieldId', + name: 'field', type: 'string', default: '', required: true, diff --git a/packages/nodes-base/nodes/ClickUp/TaskInterface.ts b/packages/nodes-base/nodes/ClickUp/TaskInterface.ts index 3a5c733796..a24f9b2851 100644 --- a/packages/nodes-base/nodes/ClickUp/TaskInterface.ts +++ b/packages/nodes-base/nodes/ClickUp/TaskInterface.ts @@ -5,7 +5,7 @@ import { export interface ITask { name?: string; content?: string; - assignees?: string[]; + assignees?: string[] | IDataObject; tags?: string[]; status?: string; priority?: number; diff --git a/packages/nodes-base/nodes/ClickUp/TimeTrackingDescription.ts b/packages/nodes-base/nodes/ClickUp/TimeTrackingDescription.ts index b0f5abf9b1..8f76b77a26 100644 --- a/packages/nodes-base/nodes/ClickUp/TimeTrackingDescription.ts +++ b/packages/nodes-base/nodes/ClickUp/TimeTrackingDescription.ts @@ -48,7 +48,7 @@ export const timeTrackingFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Task ID', - name: 'taskId', + name: 'task', type: 'string', default: '', displayOptions: { @@ -157,7 +157,7 @@ export const timeTrackingFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Task ID', - name: 'taskId', + name: 'task', type: 'string', default: '', displayOptions: { @@ -174,7 +174,7 @@ export const timeTrackingFields = [ }, { displayName: 'Interval ID', - name: 'intervalId', + name: 'interval', type: 'string', default: '', displayOptions: { @@ -194,7 +194,7 @@ export const timeTrackingFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Task ID', - name: 'taskId', + name: 'task', type: 'string', default: '', displayOptions: { @@ -235,7 +235,7 @@ export const timeTrackingFields = [ /* -------------------------------------------------------------------------- */ { displayName: 'Task ID', - name: 'taskId', + name: 'task', type: 'string', default: '', displayOptions: { @@ -252,7 +252,7 @@ export const timeTrackingFields = [ }, { displayName: 'Interval ID', - name: 'intervalId', + name: 'interval', type: 'string', default: '', displayOptions: {