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

Method createTask

src/services/TaskService.ts:279–284  ·  view source on GitHub ↗

* Create a new task file with all the necessary setup * This is the central method for task creation used by all components * * @param taskData - The task data to create * @param options - Optional settings for task creation * @param options.applyDefaults - Whether to apply task creation d

(
		taskData: TaskCreationData,
		options: { applyDefaults?: boolean; applyTemplate?: boolean } = {}
	)

Source from the content-addressed store, hash-verified

277 * @param options.applyDefaults - Whether to apply task creation defaults. Set to false for imports (e.g., ICS events) that shouldn't have defaults applied. Defaults to true.
278 */
279 async createTask(
280 taskData: TaskCreationData,
281 options: { applyDefaults?: boolean; applyTemplate?: boolean } = {}
282 ): Promise<{ file: TFile; taskInfo: TaskInfo }> {
283 return this.taskCreationService.createTask(taskData, options);
284 }
285
286 /**
287 * Apply template to task (both frontmatter and body) if enabled in settings

Callers 1

materializeOccurrenceMethod · 0.95

Calls 1

createTaskMethod · 0.65

Tested by

no test coverage detected