In the agenda dispatcher view (i.e. after C-c a
if you have customized the setting as the manual suggests - or after M-x org-agenda
), select m
for a query to match tags/properties/todo and specify the following entry:
TODO="DONE"&CLOSED>="<-1w>"
That should give you a list of DONE
items that were CLOSED
in the past week. I don't think it's sorted though and I don't remember how to sort that view (or even if it is possible). Untested.
EDIT: I tested in response to the comment. Here's an example Org mode file (/tmp/foo.org
):
#+STARTUP: logdone
* DONE one
CLOSED: [2024-05-03 Fri 14:17]
:PROPERTIES:
:VISIBILITY: folded
:END:
* DONE two
CLOSED: [2024-05-06 Mon 14:17]
:PROPERTIES:
:VISIBILITY: folded
:END:
* TODO three
SCHEDULED: <2024-05-11 Sat>
I start with emacs -Q /tmp/foo.org
, add the file to the (empty) agenda list with C-c [
and do M-x org-agenda RET m TODO="DONE"&CLOSED>="<-1w>" RET
. The result is:
Headlines with TAGS match: TODO="DONE"&CLOSED>="<-1w>"
Press ‘C-u r’ to search again
foo: DONE two
It shows the only item (two
) that is DONE and closed during the past week. Item one
was closed more than a week ago and item three
is not DONE
.
[ts]
and<ts>
see Inactive timestamp.[ts]
) do not contribute to the agenda, whereas active timestamps (<ts>
) do.