From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: ox taskjuggler issues: (1) unable to set 'timingresolution' (2) taskjuggler_resource not found (3) property/attribute aliases Date: Wed, 25 Jun 2014 17:26:44 +0200 Message-ID: <87fvit80y3.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wzp6K-00054f-7B for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 11:27:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wzp6B-0006OW-PP for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 11:27:08 -0400 Received: from plane.gmane.org ([80.91.229.3]:55466) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wzp6B-0006OO-Jg for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 11:26:59 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wzp67-0007oZ-OA for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 17:26:55 +0200 Received: from g231234191.adsl.alicedsl.de ([92.231.234.191]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Jun 2014 17:26:55 +0200 Received: from tjolitz by g231234191.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Jun 2014 17:26:55 +0200 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@gnu.org Nick Garber writes: Hello, > In exploring the use of OrgMode for advanced project planning I've run > across a few questions/problems with the taskjuggler exporter that I'd > like to raise. > > (1) unable to set 'timingresolution' > > My project contains some short tasks, such as brief but required > meetings, that are less than the default timing resolution of 60 mins > and so causes the Taskjuggler export-and-process to fail with EM: > "TaskJuggler failed with errors: Error: Effort value must at least as > large as the timing resolution (60min)." > > I'd like to set the default value for the attribute to "5 min", the > minimum value, but apparently a facility for this is not provided via > orgmode. > > What I'm doing so far is creating the .tjp file, editing in this > value, then exporting with =tj3 somefile.tjp= from the command line, > and this _does_ work, but is awkward and hopefully avoidable. > > This might be most sensibly resolved by adding an, 'Org Export > Taskjuggler Default Project Attributes' variable to those available > via M-x customize-group org-export-taskjuggler . I'm going to submit a patch for this. > (2) taskjuggler_resource not found > > When specifying the OrgMode heading where the project resources will > live with the :taskjuggler_resource: tag, I've found that this tag is > not exported unless it is attached to a top level headline. > > To work around this I've moved the project's tree from it's main .org > file, in order to promote the "* Project Resource Info" headline > without disrupting my normal and thus precious ;-) headline "schema". > I didn't see "attach to first-level headline" described as a resource > export requirement and thought it unusual enough to mention in case it > is not an intended limitation. Seems to be an intended limitation, see this comment in the sources ,---- | (let ((main-resourc | ;; Collect contents from various trees marked with | ;; `org-taskjuggler-resource-tag'. Only gather top level | ;; resources. ...))) `---- This is because the mapping function following this comment ,----[ C-h f org-element-map RET ] | org-element-map is a compiled Lisp function in `org-element.el'. | | (org-element-map DATA TYPES FUN &optional INFO FIRST-MATCH | NO-RECURSION WITH-AFFILIATED) `---- sets 'headline as NO-RECURSION argument. This could easily be dropped, but I don't know which implications and side-effects this would have. -- cheers, Thorsten