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

Method setTaskProperty

src/api/TaskNotesAPI.ts:2096–2107  ·  view source on GitHub ↗
(
		path: string,
		property: keyof TaskInfo,
		value: unknown,
		context?: TaskNotesMutationContext
	)

Source from the content-addressed store, hash-verified

2094 }
2095
2096 private async setTaskProperty(
2097 path: string,
2098 property: keyof TaskInfo,
2099 value: unknown,
2100 context?: TaskNotesMutationContext
2101 ): Promise<TaskInfo> {
2102 const task = await this.requireTask(path);
2103 const updatedTask = await this.withMutationContext([task.path], context, () =>
2104 this.plugin.taskService.updateProperty(task, property, value)
2105 );
2106 return copyTaskInfo(updatedTask);
2107 }
2108
2109 private async updateStringList(
2110 path: string,

Callers 1

TaskNotesAPIClass · 0.95

Calls 4

requireTaskMethod · 0.95
withMutationContextMethod · 0.95
copyTaskInfoFunction · 0.85
updatePropertyMethod · 0.80

Tested by

no test coverage detected