From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Egli Subject: Re: taskjuggler (tj3) export issues and proposals Date: Wed, 01 Feb 2012 16:54:00 +0100 Message-ID: <87pqdyr1lz.fsf@sbs.ch> References: <871uqesl0u.fsf@sbs.ch> <4F2949A9.50107@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RscW3-0003vq-OV for emacs-orgmode@gnu.org; Wed, 01 Feb 2012 10:54:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RscVy-00069k-Pe for emacs-orgmode@gnu.org; Wed, 01 Feb 2012 10:54:35 -0500 Received: from mail.sbszh.ch ([217.162.18.84]:53346) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RscVy-00065d-DT for emacs-orgmode@gnu.org; Wed, 01 Feb 2012 10:54:30 -0500 In-Reply-To: <4F2949A9.50107@gmail.com> (Rainer M. Krug's message of "Wed, 01 Feb 2012 15:18:17 +0100") 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: Rainer M Krug Cc: emacs-orgmode@gnu.org --=-=-= Rainer M Krug writes: > But I am not clear about > > 1) how your .org file looks > 2) your reports.tji looks > 3) what I have to set in emacs / org variables to use tj3. > > Would it be possible to post a small basic example so that one has > something to start working with? I still feel lost. I attached a sample org file (basically the one from the worg page) that also sets (as file variables) the two variables that you need to set. Also I attached the reports.tji that I'm using. This should answer your question 1 and 2. As for question 3: If you take the attached org files all the relevant variables are set for you. If you do it manually you'll have to set org-export-taskjuggler-target-version and org-export-taskjuggler-default-reports. Let me know if the attached files work for you out of the box. I have some small local changes to the taskjuggler exporter but AFAIK they should not influence this. Thanks Christian --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename=foo.org Content-Transfer-Encoding: quoted-printable Content-Description: sample org file #+PROPERTY: Effort_ALL 2d 5d 10d 20d 30d 35d 50d=20 #+PROPERTY: allocate_ALL dev doc test #+COLUMNS: %30ITEM(Task) %Effort %allocate %BLOCKER %ORDERED * Accounting Software :taskjuggler_p= roject: ** Specification :PROPERTIES: :Effort: 20d :BLOCKER: start :allocate: dev :END: ** Software Development :PROPERTIES: :ORDERED: t :BLOCKER: previous-sibling :priority: 1000 :allocate: dev :END: *** Database coupling :PROPERTIES: :Effort: 20d :END: *** Back-End Functions :PROPERTIES: :Effort: 30d :task_id: back_end :END: *** Graphical User Interface :PROPERTIES: :Effort: 35d :allocate: paul, seb :END: ** Software testing :PROPERTIES: :ORDERED: t :BLOCKER: previous-sibling :allocate: test :END: *** Alpha Test :PROPERTIES: :Effort: 5d :task_id: alpha :END: *** Beta Test :PROPERTIES: :Effort: 20d :task_id: beta :allocate: test, paul :END: ** Manual :PROPERTIES: :Effort: 50d :task_id: manual :BLOCKER: start :allocate: doc :END: ** Milestones *** Project start :PROPERTIES: :task_id: start :END: *** Technology Preview :PROPERTIES: :BLOCKER: back_end :END: *** Beta version :PROPERTIES: :BLOCKER: alpha :END: *** Ship Product to Customer :PROPERTIES: :BLOCKER: beta manual :END: * Resources :taskjuggler_resource: ** Developers :PROPERTIES: :resource_id: dev :END: *** Paul Smith :PROPERTIES: :resource_id: paul :END: *** S=C3=A9bastien Bono :PROPERTIES: :resource_id: seb :END: *** Klaus M=C3=BCller ** Others *** Peter Murphy :PROPERTIES: :resource_id: doc :limits: { dailymax 6.4h } :END: *** Dim Sung :PROPERTIES: :resource_id: test :END: * File Variables # Local Variables: # org-export-taskjuggler-target-version: 3.0 # org-export-taskjuggler-default-reports: ("include \"reports.tji\"") # compile-command: "~/.gem/ruby/1.9.1/bin/tj3 foo.tjp" # End: --=-=-= Content-Disposition: attachment; filename=reports.tji Content-Description: sample tj3 reports textreport report "Plan" { formats html header '== <-query attribute="name"-> ==' center -8<- [#Plan Plan] | [#Status Status] | [#Resource_Allocation Resource Allocation] ---- === Plan === <[report id="plan"]> ---- === Status === <[report id="status.completed"]> ---- <[report id="status.ongoing"]> ---- <[report id="status.future"]> ---- === Resource Allocation === <[report id="resourceGraph"]> ->8- } # A traditional Gantt chart with a project overview. taskreport plan "" { headline "Project Plan" columns bsi, name, start, end, effort, chart loadunit shortauto hideresource 1 } taskreport status "" { columns bsi, name { width 150 }, start { width 100 }, end { width 100 }, effort { width 75 }, status { width 75 }, gauge {width 150 } loadunit shortauto taskreport completed "" { headline "Completed tasks" hidetask plan.complete < 100.0 sorttasks plan.start.up } taskreport ongoing "" { headline "Ongoing tasks" hidetask ~(isleaf() & (plan.start <= ${now}) & (plan.complete < 100.0)) } taskreport future "" { headline "Future tasks" hidetask ~(plan.start > ${now} & (plan.complete < 100.0)) } } # A graph showing resource allocation. It identifies whether each # resource is under- or over-allocated for. resourcereport resourceGraph "" { headline "Resource Allocation Graph" columns no, name, effort, weekly loadunit shortauto hidetask ~(isleaf() & isleaf_()) sorttasks plan.start.up } --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Z=C3=BCrich, Switzerland ----- Neu bei der SBS: 9000 Buecher kaufen oder schenken. Mehr dazu finden Sie unter http://www.sbs.ch/verkauf --=-=-=--