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

Method createTask

src/api/TaskNotesAPI.ts:1932–1946  ·  view source on GitHub ↗
(
		taskData: TaskCreationData,
		context?: TaskNotesMutationContext
	)

Source from the content-addressed store, hash-verified

1930 }
1931
1932 async createTask(
1933 taskData: TaskCreationData,
1934 context?: TaskNotesMutationContext
1935 ): Promise<TaskInfo> {
1936 const result = await this.withMutationContext([], context, async () =>
1937 this.plugin.taskService.createTask(
1938 {
1939 ...taskData,
1940 creationContext: taskData.creationContext ?? "api",
1941 },
1942 { applyDefaults: true }
1943 )
1944 );
1945 return copyTaskInfo(result.taskInfo);
1946 }
1947
1948 async updateTask(
1949 path: string,

Callers 1

TaskNotesAPIClass · 0.95

Calls 3

withMutationContextMethod · 0.95
copyTaskInfoFunction · 0.85
createTaskMethod · 0.65

Tested by

no test coverage detected