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: Mattia Pascal
Subject: Re: [O] compute the difference between effort estimates and actual clocked time
Date: Tue, 16 Aug 2011 23:04:02 +0200

Thanks a lot. It's what I needed.
I'll work on it.

On Tue, Aug 16, 2011 at 4:25 PM, Bastien <address@hidden> wrote:
> 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,
>
>
>
> --
>  Bastien
>
>



reply via email to

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