I'm trying to get how many times a task has been re-scheduled (the
Sched.00x: you see in org-agenda for "today tasks"). But so far, I don't know how to extract information from the structure returned by
My original plan was to regexp the hell out of the title, since it carries the information I'm looking, but I don't even know how to obtain from the data structure for the title of the entry. It doesn't seems like the number of times an entry was re-scheduled comes within the data structure.
This is my current code:
(let* ((files (org-agenda-files)) (due-todos 0) (due-older 0) (today (calendar-current-date))) (dolist (file files) (let* ((entries (org-agenda-get-day-entries file today :scheduled :deadline))) (dolist (entry entries) ;; Get how many times the task was re-scheduled, and count it ))))