* Agenda filtering
@ 2016-10-24 14:56 Richard Lawrence
2017-07-03 4:12 ` Bastien
0 siblings, 1 reply; 4+ messages in thread
From: Richard Lawrence @ 2016-10-24 14:56 UTC (permalink / raw)
To: emacs-orgmode
Hi everyone,
I have an Org file with a lot of projects that look like this:
* TODO Project A
DEADLINE: <2016-10-28 Fri>
** NEXT Subtask 1
** TODO Subtask 2
* TODO Project B
DEADLINE: <2016-10-31 Mon>
** DONE Subtask 1
** NEXT Subtask 2
Some of these projects have deadlines far in the future, some near. I'd
like to focus on just the NEXT tasks for projects with upcoming
deadlines.
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.
Many thanks for your insights!
Best,
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Agenda filtering
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
0 siblings, 1 reply; 4+ messages in thread
From: Bastien @ 2017-07-03 4:12 UTC (permalink / raw)
To: Richard Lawrence; +Cc: emacs-orgmode
Hi Richard,
Richard Lawrence <richard.lawrence@berkeley.edu> writes:
> 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 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>\"")
HTH,
--
Bastien
^ permalink raw reply [flat|nested] 4+ messages in thread
* Agenda filtering (take 2)
2017-07-03 4:12 ` Bastien
@ 2017-10-02 20:58 ` Richard Lawrence
2017-10-04 18:37 ` Narendra Joshi
0 siblings, 1 reply; 4+ messages in thread
From: Richard Lawrence @ 2017-10-02 20:58 UTC (permalink / raw)
To: emacs-orgmode
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?
Many thanks as always!
Best,
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Agenda filtering (take 2)
2017-10-02 20:58 ` Agenda filtering (take 2) Richard Lawrence
@ 2017-10-04 18:37 ` Narendra Joshi
0 siblings, 0 replies; 4+ messages in thread
From: Narendra Joshi @ 2017-10-04 18:37 UTC (permalink / raw)
To: Richard Lawrence; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-10-04 18:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.