From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shakthi Kannan Subject: Updating :PROPERTIES: :ACTUAL: with total clocked time Date: Sat, 28 Jan 2017 11:32:10 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXM5W-0005jB-2v for emacs-orgmode@gnu.org; Sat, 28 Jan 2017 01:02:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXM5U-0003sh-US for emacs-orgmode@gnu.org; Sat, 28 Jan 2017 01:02:14 -0500 Received: from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]:33869) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cXM5U-0003sO-R2 for emacs-orgmode@gnu.org; Sat, 28 Jan 2017 01:02:12 -0500 Received: by mail-qk0-x242.google.com with SMTP id e1so11783882qkh.1 for ; Fri, 27 Jan 2017 22:02:11 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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