topydo icon indicating copy to clipboard operation
topydo copied to clipboard

Recurring tasks with start dates only

Open an-ca opened this issue 9 years ago • 3 comments

Hey there,

Well, first thanks for writing this CLI, greatly appreciated.

I have a feature request: could recurrence be applied to tasks which only have a start date?

For instance, I have a task with a start date in the future. I don't want it to appear or to bother me, hence the start date. When the start date passes on, the task will appear when I list my tasks. And when I complete the task, I'd like a new one to be created with a start date only (with new_start = completion_date + recurrence_offset). I hope this makes sense.

Thank you.

Edit: I gave the code a quick look, and I actually think the behaviour I described is built-in. I can't see why it's not behaving this way.

an-ca avatar Nov 15 '16 22:11 an-ca

Actually, the behavior is not built-in. The recurrence code will always set a due date, regardless whether the original has one or not. The start date will only be set when the original has a start date, otherwise its left out.

I started something like this about half a year ago, but abandoned the idea because of corner cases that were hard to come by (I can't remember the details). It had something to do with determining the length of a todo (typically the difference in days between start/creation and the due date).

Moreover, at this point I'm reluctant to add this because it changes the current behavior. Now, items without a due date will get one on recurrence. With this feature this is no longer the case.

bram85 avatar Dec 02 '16 07:12 bram85

I understand the change of behaviour is a problem.

What's the reasoning behind the way the start date is set when creating a new recurring task?

Handling the initialization of the start date the same way as the due date would allow me to obtain the behaviour described in the first message.

Thanks!

an-ca avatar Jan 16 '17 15:01 an-ca

It's an old issue but I think @Luxoboy request is still valid. I'd like to let you know I've mentioned this ToPyDo behaviour in other SimpleTask's issue - https://github.com/mpcjanssen/simpletask-android/issues/312#issuecomment-767365840

amariusz avatar Jan 26 '21 07:01 amariusz