From: Mattia Pascal <mattia.pascal@gmail.com>
To: Bastien <bzg@altern.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: compute the difference between effort estimates and actual clocked time
Date: Tue, 16 Aug 2011 23:04:02 +0200 [thread overview]
Message-ID: <CAHGp6xKdHdHmbE2=iQhXEOixPEqoPrd6uS=nPHjnLxnTNeHfBQ@mail.gmail.com> (raw)
In-Reply-To: <87obzpo0o1.fsf@altern.org>
Thanks a lot. It's what I needed.
I'll work on it.
On Tue, Aug 16, 2011 at 4:25 PM, Bastien <bzg@altern.org> wrote:
> Hi Pascal,
>
> M.P. <mattia.pascal@gmail.com> 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
>
>
next prev parent reply other threads:[~2011-08-16 21:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-31 9:10 compute the difference between effort estimates and actual clocked time M.P.
2011-08-16 14:25 ` Bastien
2011-08-16 21:04 ` Mattia Pascal [this message]
2011-08-17 9:41 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAHGp6xKdHdHmbE2=iQhXEOixPEqoPrd6uS=nPHjnLxnTNeHfBQ@mail.gmail.com' \
--to=mattia.pascal@gmail.com \
--cc=bzg@altern.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).