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

Method updateTask

src/api/TaskNotesAPI.ts:1948–1958  ·  view source on GitHub ↗
(
		path: string,
		patch: TaskNotesTaskPatch,
		context?: TaskNotesMutationContext
	)

Source from the content-addressed store, hash-verified

1946 }
1947
1948 async updateTask(
1949 path: string,
1950 patch: TaskNotesTaskPatch,
1951 context?: TaskNotesMutationContext
1952 ): Promise<TaskInfo> {
1953 const task = await this.requireTask(path);
1954 const updatedTask = await this.withMutationContext([task.path], context, () =>
1955 this.plugin.taskService.updateTask(task, patch)
1956 );
1957 return copyTaskInfo(updatedTask);
1958 }
1959
1960 async completeTask(
1961 path: string,

Callers 8

TaskNotesAPIClass · 0.95
updateStringListMethod · 0.95
addReminderMethod · 0.95
removeReminderMethod · 0.95
addDependencyMethod · 0.95
removeDependencyMethod · 0.95
startTimeMethod · 0.95
appendTimeEntryMethod · 0.95

Calls 4

requireTaskMethod · 0.95
withMutationContextMethod · 0.95
copyTaskInfoFunction · 0.85
updateTaskMethod · 0.65

Tested by

no test coverage detected