emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Shakthi Kannan <shakthimaan@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Updating :PROPERTIES: :ACTUAL: with total clocked time
Date: Sat, 28 Jan 2017 11:32:10 +0530	[thread overview]
Message-ID: <CABG-yt2cqsAr3o3cHKhqJ2eNMcH_xf0s_GuCSMUSx_L_-HhkjQ@mail.gmail.com> (raw)

Hi,

I would like to know how we can update the :ACTUAL: field in
:PROPERTIES: for a DONE task with the total clocked time. A MWE:

=== sample.org ===

* IN_PROGRESS Task A
    :PROPERTIES:
    :ESTIMATED: 4.0
    :ACTUAL:
    :END:
    :LOGBOOK:
    CLOCK: [2017-01-26 Thu 19:00]--[2017-01-26 Thu 19:30] =>  0:30
    CLOCK: [2017-01-26 Thu 13:00]--[2017-01-26 Thu 14:30] =>  1:30
    :END:

=== END ===

As soon as I mark the above task as DONE, the total clocked time needs
to be updated in the :ACTUAL: field as shown below:

=== sample.org ===

* DONE Task A
    :PROPERTIES:
    :ESTIMATED: 4.0
    :ACTUAL: 2.0
    :END:
    :LOGBOOK:
    CLOCK: [2017-01-26 Thu 19:00]--[2017-01-26 Thu 19:30] =>  0:30
    CLOCK: [2017-01-26 Thu 13:00]--[2017-01-26 Thu 14:30] =>  1:30
    :END:

=== END ===

How can this be achieved?

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com

                 reply	other threads:[~2017-01-28  6:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CABG-yt2cqsAr3o3cHKhqJ2eNMcH_xf0s_GuCSMUSx_L_-HhkjQ@mail.gmail.com \
    --to=shakthimaan@gmail.com \
    --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).