From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Bug: ox-taskjuggler :effort: property incorrectly converted when in minutes Date: Sun, 2 Nov 2014 16:26:45 -0600 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]:47637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl3bk-0003Ey-NZ for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 17:26:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xl3bj-00008k-H1 for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 17:26:48 -0500 Received: from mail-lb0-x22c.google.com ([2a00:1450:4010:c04::22c]:64455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl3bj-00005v-7A for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 17:26:47 -0500 Received: by mail-lb0-f172.google.com with SMTP id w7so1262196lbi.17 for ; Sun, 02 Nov 2014 14:26:45 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode I ran into an error with a 30min task which used the :effort: property to set this duration. Upon compilation, I noted the warning: ``` file.tjp:10: Warning: 400.0d of effort of task one does not fit into the project time frame. Warning: 1 tasks could not be scheduled ``` I looked at the .tjp file, and 30min had been converted to 4800.0 hours. I was able to reproduce with the following setup: #+begin_src min-config (add-to-list 'load-path "~/.elisp/org.git/contrib/lisp/") (require 'ox-taskjuggler) #+end_src emacs -Q M-x load-file ~/path/to/min-config #+begin_src tj-time-test.org * Project :taskjuggler_project: ** task1-effort-min :PROPERTIES: :start: 2014-11-01 :effort: 30min :allocate: jwhendy :END: ** task2-duration-min :PROPERTIES: :duration: 30min :allocate: jwhendy :blocker: previous-sibling :END: #+end_src Exported this via =C-e J j=; report section omitted below. #+begin_src tj-time-test.tjp project nil "Project" "1.0" 2014-11-02 +280d { } shift s40 "Part time shift" { workinghours wed, thu, fri off } resource jwhendy "" { } task project "Project" { task task1_effort_min "task1-effort-min" { purge allocate allocate jwhendy effort 4800.0h start 2014-11-01 } task task2_duration_min "task2-duration-min" { depends !task1_effort_min purge allocate allocate jwhendy duration 30min } } #+end_src Note the effort vs. duration time processing. I tried the property :Effort: instead, as that's used in Worg and I wondered if it was "built-in" (even though any tj attribute should be able to be passed through a property) and got the same result. >From what I can tell, effort/duration/length all have the same definition structure: - http://www.taskjuggler.org/tj3/manual/effort.html - http://www.taskjuggler.org/tj3/manual/duration.html Thanks for any feedback or requests for more info. John