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

Method buildTaskData

src/modals/TaskCreationModal.ts:742–773  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

740 }
741
742 private buildTaskData(): Partial<TaskInfo> {
743 const taskData = buildTaskCreationData({
744 title: this.title,
745 dueDate: this.dueDate,
746 scheduledDate: this.scheduledDate,
747 priority: this.priority,
748 status: this.status,
749 contexts: this.contexts,
750 projects: this.projects,
751 tags: this.tags,
752 timeEstimate: this.timeEstimate,
753 recurrenceRule: this.recurrenceRule,
754 recurrenceAnchor: this.recurrenceAnchor,
755 reminders: this.reminders,
756 blockedByItems: this.blockedByItems,
757 details: this.details,
758 userFields: this.userFields,
759 creationContext: this.options.creationContext,
760 taskIdentificationMethod: this.plugin.settings.taskIdentificationMethod,
761 taskTag: this.plugin.settings.taskTag,
762 normalizeDetails: (value) => this.normalizeDetails(value),
763 });
764 const prePopulatedCustomFrontmatter = this.options.prePopulatedValues?.customFrontmatter;
765 if (prePopulatedCustomFrontmatter) {
766 taskData.customFrontmatter = {
767 ...prePopulatedCustomFrontmatter,
768 ...taskData.customFrontmatter,
769 };
770 }
771
772 return taskData;
773 }
774
775 // Override to prevent creating duplicate title input when NLP is enabled
776 protected createTitleInput(container: HTMLElement): void {

Calls 1

buildTaskCreationDataFunction · 0.90

Tested by

no test coverage detected