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

Method rescheduleTask

src/api/TaskNotesAPI.ts:1987–1997  ·  view source on GitHub ↗
(
		path: string,
		date: string | null,
		context?: TaskNotesMutationContext
	)

Source from the content-addressed store, hash-verified

1985 }
1986
1987 async rescheduleTask(
1988 path: string,
1989 date: string | null,
1990 context?: TaskNotesMutationContext
1991 ): Promise<TaskInfo> {
1992 const task = await this.requireTask(path);
1993 const updatedTask = await this.withMutationContext([task.path], context, () =>
1994 this.plugin.taskService.updateProperty(task, "scheduled", date ?? undefined)
1995 );
1996 return copyTaskInfo(updatedTask);
1997 }
1998
1999 async archiveTask(
2000 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