emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: Stefan Huchler <stefan.huchler@mail.de>, emacs-orgmode@gnu.org
Subject: Re: Customize resheduling behaviour
Date: Thu, 01 Oct 2020 11:11:40 +0800	[thread overview]
Message-ID: <874kneprmb.fsf@localhost> (raw)
In-Reply-To: <87pn634c7c.fsf@mail.de>

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


      parent reply	other threads:[~2020-10-01  3:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-30 13:37 Stefan Huchler
2020-09-30 19:24 ` Richard Lawrence
2020-10-01  2:45 ` David Masterson
2020-10-01  3:11 ` Ihor Radchenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874kneprmb.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=stefan.huchler@mail.de \
    --subject='Re: Customize resheduling behaviour' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this 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).