asana_get_task_stories
Retrieve comments and activity history for a specific Asana task to track progress and collaboration details.
Instructions
Get comments and stories for a specific task
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | The task ID to get stories for | |
| opt_fields | No | Comma-separated list of optional fields to include |
Implementation Reference
- src/tool-handler.ts:180-186 (handler)Switch case in tool_handler function that handles the execution of 'asana_get_task_stories' tool by destructuring arguments and calling asanaClient.getStoriesForTask.case "asana_get_task_stories": { const { task_id, ...opts } = args; const response = await asanaClient.getStoriesForTask(task_id, opts); return { content: [{ type: "text", text: JSON.stringify(response) }], }; }
- src/tools/story-tools.ts:3-20 (schema)Defines the Tool object for 'asana_get_task_stories' including name, description, and input schema.export const getStoriesForTaskTool: Tool = { name: "asana_get_task_stories", description: "Get comments and stories for a specific task", inputSchema: { type: "object", properties: { task_id: { type: "string", description: "The task ID to get stories for" }, opt_fields: { type: "string", description: "Comma-separated list of optional fields to include" } }, required: ["task_id"] } };
- src/tool-handler.ts:32-35 (registration)Imports the getStoriesForTaskTool from story-tools.js for registration.import { getStoriesForTaskTool, createTaskStoryTool } from './tools/story-tools.js';
- src/tool-handler.ts:43-44 (registration)Includes getStoriesForTaskTool in the all_tools array which is exported as list_of_tools.createTaskTool, getStoriesForTaskTool,
- src/asana-client-wrapper.ts:143-146 (helper)AsanaClientWrapper method that wraps the Asana SDK call to retrieve stories for a task.async getStoriesForTask(taskId: string, opts: any = {}) { const response = await this.stories.getStoriesForTask(taskId, opts); return response.data; }