Add support for recurring task
Need support for recurring tasks (recur:, due:, until:) so users can configure, view, and complete repeating tasks directly within the app.
Currently, managing recurring tasks requires switching to a taskwarrior cli. When recurring tasks sync to mobile via TaskChampion, their handlings are not supported.
For users relying on Fatto as their primary mobile Taskwarrior companion, handling recurring routines (e.g., daily reviews, weekly backups, monthly bill payments) could be troublesome (as they need do not have information of if or when will the task recurs)
Below is generated implementation proposal by llm during personal conversation. I think it's somewhat reasonable so I'll just paste it down here.
Task Creation & Editing
- Add a recurrence field in the task creation/edit screen.
- Support standard Taskwarrior intervals (e.g.,
daily,weekly,monthly,weekdays, or custom periods like2weeks).
Task Completion & Generation
- When a recurring instance is marked as
completed, Fatto should either:- Rely on the sync engine / TaskChampion to spawn the next instance, or
- Correctly update and instantiate the subsequent occurrence based on the task's recurrence rule and due date.
- Ensure completing an instance does not delete or break the parent recurrence template.
List View & Filtering
- By default, show currently actionable instance in task lists (e.g., Next / Pending) and hide the recurrence template task (
status:recurring), consistent with CLI Taskwarrior behavior. - Add a visual indicator (such as a repeat icon 🔁) next to recurring task instances.
Additional Context / References
- Taskwarrior recurrence docs: https://taskwarrior.org/docs/recurrence/
- Sync backend: Handled via
taskchampion-sync-server.
Yes this is something that I would have since the beginning, but I need to carefully find the right way to insert it inside the app flow, will try to implement it in version 0.12.x
+1 for this. Kinda essential, tbh.
I looked into this and my fear was confirmed: two clients generating recurring tasks independently can create duplicates, taskwarrior’s sync docs in man pages recommend enabling recurrence on only one client.
So we can add recurrence details and proper editing/completion support in fatto, while leaving generation to your primary taskwarrior client 'cause generating occurrences independently on the phone would need coordination with upstream taskwarrior, so both clients recognize the same occurrence instead of creating separate copies. Fatto alone can’t reliably solve that with the current cli behavior
Hey! I just release a new beta version (1.0.0) that contains this feature request. If you want to try it the beta version is a completely different app from android pov, so you can test it without interfering with the stable version, you can delete it once you will finish to test it. Let me know in case.
Since implementing recurring tasks took quite a bit of time, and I don't personally use this feature, I'd really appreciate some feedback on it.
Thanks!
Just tried it.
Minor issue: I set the recurrence period to week, but fatto doesn't seem to parse it. It's a valid option in taskwarrior.
https://taskwarrior.org/docs/durations
I'll keep testing it for a bit and see if I find anything else to share
fyi, I found taskchampion merged iterative tasks implementation to the main branch which is basically recurrence v2. In this implementation, recurrence seems to be handled by the taskchampion itself, not the client. Completing a task just closes it and spawns its successor under a deterministic UUIDv5. So the duplication problem in task-sync you mentioned is resolved. It's not released yet (might land in 3.2.0). Even taskwarrior doesn't seems support it currently, so there's probably no need to rush this feature.
Just tried it. Minor issue: I set the recurrence period to week, but fatto doesn't seem to parse it. It's a valid option in taskwarrior. https://taskwarrior.org/docs/durations I'll keep testing it for a bit and see if I find anything else to share
thank you so much for trying it and report back!
I fixed that one and just released a new patched beta: https://github.com/brokenpip3/fatto/releases/tag/v1.0.1-beta, do you mind try it and see if the issue is gone? ty!
fyi, I found taskchampion merged https://github.com/GothenburgBitFactory/taskchampion/pull/729 implementation to the main branch which is basically recurrence v2. In this implementation, recurrence seems to be handled by the taskchampion itself, not the client. Completing a task just closes it and spawns its successor under a deterministic UUIDv5. So the duplication problem in task-sync you mentioned is resolved. It's not released yet (might land in 3.2.0). Even taskwarrior doesn't seems support it currently, so there's probably no need to rush this feature.
thanks a lot for reporting this, I was not aware of this! as soon it will become a stable thing in taskwarrior we are going to revisit the current support :)
yeah the parsing issue's gone now. thanks for quick update
now that the https://github.com/brokenpip3/fatto/releases/tag/v1.0.4 is in fdroid I think we can close this one, when the new v2 will be implemented in taskwarrior we can revisit our part as well