MCPcopy
hub / github.com/callumalpass/tasknotes / getTaskRelationships

Method getTaskRelationships

src/api/TaskNotesAPI.ts:1914–1930  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

1912 }
1913
1914 async getTaskRelationships(path: string): Promise<TaskNotesTaskRelationships> {
1915 const task = await this.requireTask(path);
1916 const [parents, subtasks, dependencies, blocking] = await Promise.all([
1917 this.getParentTasks(task.path),
1918 this.getSubtasks(task.path),
1919 this.getTaskDependencies(task.path),
1920 this.getBlockingTasks(task.path),
1921 ]);
1922
1923 return {
1924 task: copyTaskInfo(task),
1925 parents,
1926 subtasks,
1927 dependencies,
1928 blocking,
1929 };
1930 }
1931
1932 async createTask(
1933 taskData: TaskCreationData,

Callers 1

TaskNotesAPIClass · 0.95

Calls 7

requireTaskMethod · 0.95
getParentTasksMethod · 0.95
getSubtasksMethod · 0.95
getTaskDependenciesMethod · 0.95
getBlockingTasksMethod · 0.95
copyTaskInfoFunction · 0.85
allMethod · 0.80

Tested by

no test coverage detected