[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Customize resheduling behaviour
From: |
Ihor Radchenko |
Subject: |
Re: Customize resheduling behaviour |
Date: |
Thu, 01 Oct 2020 11:11:40 +0800 |
> Is there a way to reshedule it, if it fails 1 week later and if I
> complete it, reshedule 2 weeks later?
There is no built-in way to do it, but you can always write your own
org-trigger-hook.
Alternatively, you can also use org-edna. Something like
:TRIGGER: if self todo-state?("FAILED") then self scheduled!("++14d")
todo!("TODO") else self scheduled!("++7d") todo!("TODO") endif
Best,
Ihor
Stefan Huchler <stefan.huchler@mail.de> writes:
> I have a task sheduled like that:
>
> * TODO Order from a delivery service
> SCHEDULED: <2020-10-06 Di .+2w>
>
> So if I understand the resheduling correctly if I miss the task, it
> get's resheduled 2 weeks later (probably deadline would be better here)?
>
> But the delivery service delievers weekly I just choose to only order
> all 2 weeks from it. So if I miss a date I would shop myself for 1
> week and then order again 1 week later not 2 but if I succeed I only
> order 2 weeks later.
>
> Is there a way to reshedule it, if it fails 1 week later and if I
> complete it, reshedule 2 weeks later?