emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] compute the difference between effort estimates and actual clock


From: Bastien
Subject: Re: [O] compute the difference between effort estimates and actual clocked time
Date: Tue, 16 Aug 2011 16:25:08 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hi Pascal,

M.P. <address@hidden> writes:

> I'd like to add to my tasks a property  whose value should be the difference 
> in
> time between the effort estimates and the actual clocked time. The final 
> purpose
> is to use the property in column view mode as I do with CLOCKSUM and Effort.
> Could you give me any hints?

There is no way to do this easily right now.

However, this command will display the remaining effort:

#+begin_src emacs-lisp
(defun my-org-display-remaining-effort ()
  "Compute remaining effort for current subtree."
  (interactive)
  (let ((clocksum (org-clock-sum-current-item))
        (effort (org-duration-string-to-minutes
                  (org-entry-get (point) "Effort"))))
    (message (org-minutes-to-hh:mm-string (- effort clocksum)))))
#+end_src

Also, the attached patch allow to postprocess property values with
custom functions when inserting them with org-set-properties.

Let me know if you find this useful!

Best,

Attachment: 0001-New-option-org-properties-postprocess-alist.patch
Description: Text Data

-- 
 Bastien

reply via email to

[Prev in Thread] Current Thread [Next in Thread]