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?
Hi Stefan,
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>
>
> ...
> Is there a way to reshedule it, if it fails 1 week later and if I
> complete it, reshedule 2 weeks later?
I don't think there's any way to do this automatically when you change
the TODO state of the entry.
The simplest way I can think of is to do C-c C-s +7 (i.e., call
org-schedule and give a new date a week later at the prompt). If doing
this on a different day than the scheduled day, you'll need to change
the interval you enter (e.g., if you missed it by 2 days, enter +5) or
type in the new date manually.
Another option is C-c C-x c (i.e., org-clone-subtree-with-time-shift).
Clone the tree one time, with a shift of one week, then delete the old
tree. The advantage of this option is that the time shift will be
relative to the old scheduled/deadline date, not the date on which you
run the command, so you can always say +1w.
Hope that helps!
--
Best,
Richard
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?
You could probably set something up with the org-edna package on MELPA.
--
David Masterson
> 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?