create_subtask
Creates a subtask and links it to a parent user story in a single API call, inheriting board settings when not specified. Supports automatic resolution of category, importance, and tags from names.
Instructions
Create a subtask linked to a parent user story in a single call. Wraps create_work_item + set_work_item_parent. Inherits board from parent if not specified. Supports name resolution for category, importance, and tags.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"parentWorkItemId": "<parentWorkItemId>",
"title": "<title>",
"categoryId": "<categoryId>"
},
"name": "create_subtask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Title of the subtask | |
| tagIds | No | Tag IDs (numbers) or names (strings): [1, 8] or ['vulkan', 'performance'] | |
| boardId | No | Board/sprint ID (inherits from parent if not specified) | |
| projectId | No | The project ID (optional if HACKNPLAN_DEFAULT_PROJECT env var set) | |
| categoryId | Yes | Category ID (number) or name (string): 'programming', 'design', 'writing', 'ideas', 'bug' | |
| description | No | Detailed description of the subtask | |
| estimatedCost | No | Estimated effort/points | |
| assignedUserIds | No | User IDs to assign to this subtask | |
| parentWorkItemId | Yes | Parent user story ID to link this subtask to | |
| importanceLevelId | No | Importance level ID (number) or name (string): 'urgent', 'high', 'normal', 'low' |