MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / getTaskProjects

Method getTaskProjects

src/views/StatsView.ts:1001–1011  ·  view source on GitHub ↗

* Get consolidated project names for a task

(task: TaskInfo)

Source from the content-addressed store, hash-verified

999 * Get consolidated project names for a task
1000 */
1001 private getTaskProjects(task: TaskInfo): string[] {
1002 try {
1003 return getVisibleStatsProjectNames(task.projects, {
1004 noProjectLabel: this.plugin.i18n.translate("views.stats.noProject"),
1005 consolidateProjectName: (project) => this.consolidateProjectName(project),
1006 isArchivedProjectReference: (project) => this.isArchivedProjectReference(project),
1007 });
1008 } catch {
1009 return [this.plugin.i18n.translate("views.stats.noProject")];
1010 }
1011 }
1012
1013 /**
1014 * Get date range based on current filters

Callers 4

calculateOverallStatsMethod · 0.95
calculateProjectStatsMethod · 0.95
calculateProjectTrendMethod · 0.95

Calls 4

translateMethod · 0.65

Tested by

no test coverage detected