archive-project-task
Archive or unarchive a project task by providing its ID and specifying the desired state. Manage task visibility and organization efficiently.
Instructions
Archive or unarchive a project task
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_task_id | Yes | The project task ID | |
| archive | Yes | True to archive, false to unarchive |
Implementation Reference
- Primary handler for 'archive-project-task' tool. PATCHes /project_tasks/{id} with active=0 (archive) or active=1 (unarchive) based on the boolean 'archive' param. Returns success message.
// Archive/Unarchive project task export const archiveProjectTask = createTool( 'archive-project-task', 'Archive or unarchive a project task', z.object({ project_task_id: z.union([z.string(), z.number()]).describe('The project task ID'), archive: z.boolean().describe('True to archive, false to unarchive'), }), async (params) => { const projectTask = await floatApi.patch( `/project_tasks/${params.project_task_id}`, { active: params.archive ? 0 : 1 }, projectTaskSchema ); return { success: true, data: projectTask, message: `Project task ${params.archive ? 'archived' : 'unarchived'} successfully`, }; } ); - Input schema for archive-project-task: requires project_task_id (string/number) and archive (boolean to archive or unarchive).
// Archive/Unarchive project task export const archiveProjectTask = createTool( 'archive-project-task', 'Archive or unarchive a project task', z.object({ project_task_id: z.union([z.string(), z.number()]).describe('The project task ID'), archive: z.boolean().describe('True to archive, false to unarchive'), }), - src/tools/index.ts:101-113 (registration)Imports archiveProjectTask from project-tasks.ts and registers it in the legacy tools array at line 266.
import { listProjectTasks, getProjectTask, createProjectTask, updateProjectTask, deleteProjectTask, getProjectTasksByProject, getProjectTasksByPhase, bulkCreateProjectTasks, reorderProjectTasks, archiveProjectTask, getProjectTaskDependencies, } from './project-management/project-tasks.js'; - src/tools/optimized/manage-project-workflow.ts:41-41 (registration)Archive-project-task registered as a valid operation in the workflow operation enum for the consolidated manage-project-workflow tool.
'archive-project-task', - Optimized/consolidated handler for archive-project-task within manage-project-workflow. PATCHes /project_tasks/{id} with active: 0 (archive only, no unarchive support in this path).
case 'archive-project-task': return floatApi.patch(`/project_tasks/${id}`, { active: 0 }, projectTaskSchema, format);