mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
✨ Add Checklist createItem functionality to Trello Node (#1444)
* Add Trello Checklist createItem functionality * 💄 Small cosmetic change to #1433 Co-authored-by: Nicolas Antoniazzi <nicolas@codingame.com>
This commit is contained in:
@@ -565,6 +565,21 @@ export class Trello implements INodeType {
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
Object.assign(qs, additionalFields);
|
||||
|
||||
} else if (operation === 'createCheckItem') {
|
||||
// ----------------------------------
|
||||
// createCheckItem
|
||||
// ----------------------------------
|
||||
|
||||
requestMethod = 'POST';
|
||||
|
||||
const checklistId = this.getNodeParameter('checklistId', i) as string;
|
||||
|
||||
endpoint = `checklists/${checklistId}/checkItems`;
|
||||
|
||||
const name = this.getNodeParameter('name', i) as string;
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
Object.assign(qs, { name, ...additionalFields });
|
||||
|
||||
} else if (operation === 'deleteCheckItem') {
|
||||
// ----------------------------------
|
||||
// deleteCheckItem
|
||||
|
||||
Reference in New Issue
Block a user