* 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 } = {}
)
| 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 |
no test coverage detected