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

Method cycleCurrentTaskStatus

src/main.ts:1658–1675  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1656 }
1657
1658 async cycleCurrentTaskStatus(): Promise<void> {
1659 try {
1660 const taskInfo = await this.getCurrentTaskForCommand();
1661 if (!taskInfo) {
1662 return;
1663 }
1664
1665 const nextStatus = this.statusManager.getNextStatus(taskInfo.status);
1666 await this.updateTaskProperty(taskInfo, "status", nextStatus);
1667 } catch (error) {
1668 tasknotesLogger.error("Failed to cycle current task status:", {
1669 category: "persistence",
1670 operation: "cycle-current-task-status",
1671 error: error,
1672 });
1673 new Notice("Failed to cycle task status");
1674 }
1675 }
1676
1677 async cycleCurrentTaskPriority(): Promise<void> {
1678 try {

Calls 4

updateTaskPropertyMethod · 0.95
getNextStatusMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected