2

I want to add a last-reviewed date for some headings.

And in org agenda view, I want to filter outer the headings that have not been reviewed for some days.

What's the org tools/functions/setup that are involved here?

1

1 Answer 1

4

You can store the review date as an org-mode timestamp in a property, say LAST_REVIEW. To help input them, you can use org-property-set-functions-alist to give function that will be called when setting the property with C-c C-x p:

(add-to-list 'org-property-set-functions-alist
             '("LAST_REVIEW" . (lambda (&rest args)
                                  (format "[%s]"
                                          (org-read-date nil nil nil
                                                         "Last Reviewed on")
                                          ))))

(Here I'm using an inactive timestampe. Change "[%s]" to "<%s>" if you prefer active.)

You can query properties in the agenda view. For example the query LAST_REVIEW<"<-1m>" Will find entries whose LAST_REVIEW property is older than 1 month. You can save it in a custom agenda view:

(add-to-list 'org-agenda-custom-commands
             '("r" "Items to review"
               tags "LAST_REVIEW<\"<-1m>\""
               ))
2
  • An inactive timestamp is the right choice: active ones would wreak havoc on the agenda.
    – NickD
    Jul 7, 2020 at 2:05
  • Active timestamps in properties don't always appear in the agenda. Its changed back and forth from version to version
    – erikstokes
    Jul 7, 2020 at 12:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.