emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Customize resheduling behaviour
@ 2020-09-30 13:37 Stefan Huchler
  2020-09-30 19:24 ` Richard Lawrence
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stefan Huchler @ 2020-09-30 13:37 UTC (permalink / raw)
  To: emacs-orgmode

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?



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Customize resheduling behaviour
  2020-09-30 13:37 Customize resheduling behaviour Stefan Huchler
@ 2020-09-30 19:24 ` Richard Lawrence
  2020-10-01  2:45 ` David Masterson
  2020-10-01  3:11 ` Ihor Radchenko
  2 siblings, 0 replies; 4+ messages in thread
From: Richard Lawrence @ 2020-09-30 19:24 UTC (permalink / raw)
  To: Stefan Huchler, emacs-orgmode

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Customize resheduling behaviour
  2020-09-30 13:37 Customize resheduling behaviour Stefan Huchler
  2020-09-30 19:24 ` Richard Lawrence
@ 2020-10-01  2:45 ` David Masterson
  2020-10-01  3:11 ` Ihor Radchenko
  2 siblings, 0 replies; 4+ messages in thread
From: David Masterson @ 2020-10-01  2:45 UTC (permalink / raw)
  To: Stefan Huchler; +Cc: emacs-orgmode

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Customize resheduling behaviour
  2020-09-30 13:37 Customize resheduling behaviour Stefan Huchler
  2020-09-30 19:24 ` Richard Lawrence
  2020-10-01  2:45 ` David Masterson
@ 2020-10-01  3:11 ` Ihor Radchenko
  2 siblings, 0 replies; 4+ messages in thread
From: Ihor Radchenko @ 2020-10-01  3:11 UTC (permalink / raw)
  To: Stefan Huchler, emacs-orgmode

> 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?


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-10-01  3:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-30 13:37 Customize resheduling behaviour Stefan Huchler
2020-09-30 19:24 ` Richard Lawrence
2020-10-01  2:45 ` David Masterson
2020-10-01  3:11 ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).