TaskLite icon indicating copy to clipboard operation
TaskLite copied to clipboard

Importing recurring task templates from taskwarrior

Open Profpatsch opened this issue 5 years ago • 5 comments

Probably more of a feature request, but I had quite a bit of recurring tasks in my taskwarrior db, yet after the import (via tasklite import task.json as described in the manual), they are all imported like single (long overdue) tasks.

I guess it would require a special knowledge of taskwarrior’s data model to have a best-effort mapping of the supported recurrence features.

Profpatsch avatar Sep 14 '20 16:09 Profpatsch

Mh, yeah sounds definitely annoying, but this will probably be a quite difficult undertaking. Have you checked if there is a way to export the taskwarrior tasks in a way that only the most recent incarnation of a recurring task is exported? I guess this would make the import already much cleaner.

ad-si avatar Oct 09 '20 11:10 ad-si

When importing tasks from taskwarrior, I got many of:

tasklite: SQLite3 returned ErrorConstraint while attempting to perform step: UNIQUE constraint failed: task_to_note.ulid

Don't know if it is due to recurring tasks which I have many or something else, non-related?

gour avatar Oct 13 '20 11:10 gour

Oh, good catch (I think)! This error means that you try to import 2 identical notes. While this error makes sense for tasks (you wouldn't want to import 2 absolutely identical tasks) I guess it doesn't make much sense for notes, which can be identically but for different tasks. Opened an issue for this: https://github.com/ad-si/TaskLite/issues/36

ad-si avatar Oct 13 '20 12:10 ad-si

Or maybe it's a general bug for importing several notes for the same task. Will have to investigate. Do you have a minimal example?

ad-si avatar Oct 13 '20 12:10 ad-si

Or maybe it's a general bug for importing several notes for the same task. Will have to investigate. Do you have a minimal example?

IIRC, none of the tw tasks have more than single task, but will try to produce minimal example, if possible...

gour avatar Oct 13 '20 12:10 gour