From: Narendra Joshi <narendraj9@gmail.com>
To: Richard Lawrence <richard.lawrence@berkeley.edu>
Cc: emacs-orgmode@gnu.org
Subject: Re: Agenda filtering (take 2)
Date: Thu, 05 Oct 2017 00:07:33 +0530 [thread overview]
Message-ID: <877ewa3gk2.fsf@gmail.com> (raw)
In-Reply-To: <87zi99nu6n.fsf@aquinas.i-did-not-set--mail-host-address--so-tickle-me> (Richard Lawrence's message of "Mon, 02 Oct 2017 13:58:24 -0700")
Richard Lawrence <richard.lawrence@berkeley.edu> writes:
> Hi everyone,
>
> About a year ago, I wrote:
>>
>>> Is there a simple way for me to say to the agenda, "Show me all (and only)
>>> the NEXT tasks that are part of a project whose deadline is before (say)
>>> 2016-11-01"? It seems like this should be possible with the built-in agenda
>>> but I can't quite figure it out. The tricky thing is filtering by the
>>> deadline of the parent project, which might be several levels up.
>
> I'm still stuck on this, so I'd like to ask this question again. Bastien
> responded:
>
>> I would add a category to each project, then use something along this:
>>
>> ("N" "My important tasks" tags-todo
>> "CATEGORY={cat1\\|cat2}+TODO={NEXT}+DEADLINE<=\"<+3d>\"")
>
> But that doesn't seem to work for me. The problem is that the tasks I want to
> list in the tags-todo search don't themselves have deadlines; only their parent
> projects do.
>
> I have a file with projects that look like this:
>
> ** TODO Foo University DEADLINE: <2017-11-01>
> *** NEXT Determine application requirements for Foo U.
> *** TODO Submit application
>
> I'd like to see a list of just NEXT tasks in this file, sorted by the deadline
> of their parent projects.
>
> I thought that property inheritance would be the way to do this. So I tried:
>
> ("jn" "Job application NEXT tasks" tags-todo
> "+jobmarket+application+TODO={NEXT}" ((org-use-property-inheritance t))
> (org-agenda-sorting-strategy '(deadline-up))))
>
> as well as
>
> ("jn" "Job application NEXT tasks" tags-todo
> "+jobmarket+application+TODO={NEXT}" ((org-use-property-inheritance
> '("DEADLINE")) (org-agenda-sorting-strategy '(deadline-up))))
>
> in org-agenda-custom-commands. But neither seems to work. Can anyone provide
> any insights here? Is it possible for sub-tasks within a project to inherit
> their deadline?
Found an already asked question that might help:
https://lists.gnu.org/archive/html/emacs-orgmode/2016-04/msg00373.html
You can set org-agenda-sorting-strategy to `user-defined-up' and use the
function used in the thread I have posted above to compare two NEXT entries.
> Many thanks as always!
>
> Best,
> Richard
>
--
Narendra Joshi
prev parent reply other threads:[~2017-10-04 18:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-24 14:56 Agenda filtering Richard Lawrence
2017-07-03 4:12 ` Bastien
2017-10-02 20:58 ` Agenda filtering (take 2) Richard Lawrence
2017-10-04 18:37 ` Narendra Joshi [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=877ewa3gk2.fsf@gmail.com \
--to=narendraj9@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=richard.lawrence@berkeley.edu \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).