--8<---------------cut here---------------start------------->8---
(require 'org-id)

(defun bh/clock-in-organization-task ()
   (interactive)
   (bh/clock-in-task-by-id "eb155a82-92b2-4f25-a3c6-0304591af2f9"))

(defun bh/clock-in-task-by-id (id)
   "Clock in a task by id"
   (save-restriction
     (widen)
     (org-with-point-at (org-id-find id 'marker)
       (org-clock-in '(16)))))
--8<---------------cut here---------------end--------------->8---

Thanks Bernt, that is so cool. In fact I conceived something simillar but it dependent on exact headline name. Your version is way more versilite.

Thanks!


Reply via email to