Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
11 changes: 9 additions & 2 deletions src/creates/createTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
},
};
2 changes: 1 addition & 1 deletion src/test/triggerAndAction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Loading