create_project_note
Add detailed notes to Autotask projects to document progress, track tasks, and maintain comprehensive project records for better team collaboration and status monitoring.
Instructions
Create a new note for a project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | Yes | Note content | |
| noteType | No | Note type (1=General, 2=Appointment, 3=Task, 4=Ticket, 5=Project, 6=Opportunity) | |
| projectId | Yes | The project ID to add the note to | |
| title | No | Note title |
Implementation Reference
- src/handlers/tool.handler.ts:592-617 (schema)Defines the input schema, description, and registers the 'create_project_note' tool in the listTools() method.{ name: 'create_project_note', description: 'Create a new note for a project', inputSchema: { type: 'object', properties: { projectId: { type: 'number', description: 'The project ID to add the note to' }, title: { type: 'string', description: 'Note title' }, description: { type: 'string', description: 'Note content' }, noteType: { type: 'number', description: 'Note type (1=General, 2=Appointment, 3=Task, 4=Ticket, 5=Project, 6=Opportunity)' } }, required: ['projectId', 'description'] } },
- src/handlers/tool.handler.ts:1205-1212 (handler)Dispatches tool arguments to AutotaskService.createProjectNote in the callTool switch statement.case 'create_project_note': result = await this.autotaskService.createProjectNote(args.projectId, { title: args.title, description: args.description, noteType: args.noteType }); message = `Successfully created project note with ID: ${result}`; break;
- Core implementation: creates project note by calling AutotaskClient.notes.create with projectId and note data.async createProjectNote(projectId: number, note: Partial<AutotaskProjectNote>): Promise<number> { const client = await this.ensureClient(); try { this.logger.debug(`Creating project note for project ${projectId}:`, note); const noteData = { ...note, projectId: projectId }; const result = await client.notes.create(noteData as any); const noteId = (result.data as any)?.id; this.logger.info(`Project note created with ID: ${noteId}`); return noteId; } catch (error) { this.logger.error(`Failed to create project note for project ${projectId}:`, error); throw error; } }