I'm trying to make a custom org-mode agenda view that shows not only all tasks in the waiting state, but also the message I entered when changing state. Relevant Lisp from init.el:

(setq org-agenda-custom-commands '(("c" "My custom agenda" ((todo "WAITING|HOLD" ((org-agenda-overriding-header "Waiting and postponed tasks") (org-agenda-sorting-strategy '(category-keep))))))) org-log-into-drawers "LOGBOOK" org-todo-keywords '((sequence "TODO(t)" "WORK(w)" "|" "DONE(d)") (sequence "HOLD(h@/!)" "WAITING(W@/!)" "|" "CANCELLED(c@/!)"))) 

Example snippet from job.org:

* WAITING Replace failing 2TB drive in Wrath :LOGBOOK: - State "WAITING" from "TODO" [2021-11-30 Tue 13:33] \\ Spare parts ordered :END: 

How it looks now:

Waiting and postponed tasks job: WAITING Replace failing 2TB drive in Wrath 

What I want:

Waiting and postponed tasks job: WAITING Replace failing 2TB drive in Wrath Spare parts ordered 

Anyone done anything similar before, or have any pointers for how I can achieve something similar?

submitted by /u/ThatSwedishBastard
[link] [comments]