1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-22 07:09:47 +00:00

Taskjuggler export: Only create a milestone if node has no children

* contrib/lisp/ox-taskjuggler.el (org-taskjuggler--build-task): Fix
  the check whether a node has no children

A milestone should only (automatically) be inserted if a node has no
children and no duration defined.
This commit is contained in:
Christian Egli 2013-03-08 17:24:57 +01:00 committed by Bastien Guerry
parent 971afe66d2
commit 99ee65b73f

View File

@ -696,14 +696,14 @@ a unique id will be associated to it."
(effort (org-element-property :EFFORT task))
(milestone
(or (org-element-property :MILESTONE task)
(and (org-element-map (org-element-contents task) 'headline
'identity info t) ; Has task any child?
(not (or effort
(org-element-property :LENGTH task)
(org-element-property :DURATION task)
(and (org-taskjuggler-get-start task)
(org-taskjuggler-get-end task))
(org-element-property :PERIOD task))))))
(not (or (org-element-map (org-element-contents task) 'headline
'identity info t) ; Has task any child?
effort
(org-element-property :LENGTH task)
(org-element-property :DURATION task)
(and (org-taskjuggler-get-start task)
(org-taskjuggler-get-end task))
(org-element-property :PERIOD task)))))
(priority
(let ((pri (org-element-property :priority task)))
(and pri