From f03dcce37ea7cee52f54866d1795f8c26fe95ed0 Mon Sep 17 00:00:00 2001 From: Dean Zaka Hidayat Date: Mon, 23 Nov 2026 10:33:47 +0700 Subject: [PATCH] fix(zapier): Keep the 1.0.x Create Task outputs for migrated Zaps Create Task in 1.0.9 returned nodeID and document__id. 1.3.0 returns only taskId, so a migrated Zap that maps these values to a later step gets empty values with no error. Return nodeID (the task ID) and document.id (the project ID) again, and bump the version to 1.3.1. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 3 ++- package.json | 2 +- src/creates/createTask.ts | 11 +++++++++-- src/test/triggerAndAction.test.ts | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4e4dfd..7b9ec33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ -## Unreleased +## 1.3.1 +- Fix: Create Task gives the outputs `nodeID` (the task ID) and `document__id` (the project ID) again, as in 1.0.x. A Zap that maps these values to a later step keeps them after the move to this version. - Fix: the project dropdown reads the next page of projects when you click "Load more". Before, it showed the first 100 projects again, so a project after the first 100 never showed. - Fix: the AI agent, project template and project member dropdowns show more than the first page of rows. - Fix: Find Project searches all of your projects, not only the first 100. diff --git a/package.json b/package.json index 05a77fe..1eb68ae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "taskade", - "version": "1.3.0", + "version": "1.3.1", "description": "Taskade is a collaboration platform for remote teams to organize and manage projects.", "main": "index.js", "scripts": { diff --git a/src/creates/createTask.ts b/src/creates/createTask.ts index 87171c9..07aceb7 100644 --- a/src/creates/createTask.ts +++ b/src/creates/createTask.ts @@ -227,7 +227,8 @@ const perform = async (z: ZObject, bundle: Bundle) => { } } - return { taskId }; + // nodeID and document.id keep the Create Task outputs of 1.0.x, so Zaps moved from 1.0.9 keep their mapped values. + return { taskId, nodeID: taskId, document: { id: bundle.inputData.project_id } }; }; export default { @@ -306,8 +307,14 @@ export default { ], sample: { taskId: '099630d4-267e-4b22-894b-08b69f3a4d79', + nodeID: '099630d4-267e-4b22-894b-08b69f3a4d79', + document: { id: '77WDhinRapyT5FY8' }, }, - outputFields: [{ key: 'taskId' }], + outputFields: [ + { key: 'taskId', label: 'Task ID' }, + { key: 'nodeID', label: 'Task ID (legacy)' }, + { key: 'document__id', label: 'Project ID' }, + ], perform: perform, }, }; diff --git a/src/test/triggerAndAction.test.ts b/src/test/triggerAndAction.test.ts index a8009f7..1cdb8b7 100644 --- a/src/test/triggerAndAction.test.ts +++ b/src/test/triggerAndAction.test.ts @@ -66,7 +66,7 @@ describe('action: create_task', () => { z, fakeBundle({ inputData: { project_id: 'project-1', content: 'Send the proposal' } }), ); - expect(result).toEqual({ taskId: 'task-1' }); + expect(result).toEqual({ taskId: 'task-1', nodeID: 'task-1', document: { id: 'project-1' } }); expect(calls).toHaveLength(1); expect(calls[0].url).toBe('https://www.taskade.com/api/v1/projects/project-1/tasks'); expect(JSON.parse(calls[0].body ?? '{}')).toEqual({