ccsync icon indicating copy to clipboard operation
ccsync copied to clipboard

Add Support for Recurring Tasks in TaskWarrior Integration

Open Advaitgaur004 opened this issue 1 year ago • 3 comments

Currently, users need to manually recreate tasks that occur on a regular basis (like daily standups, weekly reports, monthly reviews, etc.). This is time-consuming and prone to errors

  1. Having to manually create the same task multiple times
  2. Missing recurring deadlines because they forgot to create the next instance

Implement full support for TaskWarrior's recurring task functionality, allowing users to

Create tasks with recurrence patterns:

{
  "description": "Team Weekly Sync",
  "recurrence": "weekly",
  "dueDate": "2024-03-22",
  "until": "2024-12-31"
}

Support for different recurrence frequencies:

  1. Daily tasks
  2. Weekly tasks
  3. Monthly tasks
  4. Yearly tasks

Additional context It is there in original Takswarrior, for reference

Advaitgaur004 avatar Mar 13 '25 13:03 Advaitgaur004

This might be done by adding new fields in the Task Model on the backend like Parent Task, Recur, Rtype, etc. Shall update the frontend as well to reflect the changes. Be sure to make these fields optional in the add task handler if you are willing to work on this

its-me-abhishek avatar Mar 13 '25 14:03 its-me-abhishek

Yeap, I have the solution..its optional, if nothing passed, it will still works

Advaitgaur004 avatar Mar 13 '25 14:03 Advaitgaur004

Server Side is ready and Tested, for testing one can follow these standard terminal call (inside Backend) go test -v ./controllers -run "Test_(ModifyRecurringTask|AddTaskWithRecurrence)"

Advaitgaur004 avatar Mar 13 '25 15:03 Advaitgaur004