1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-12-27 10:55:04 +00:00

Use both scheduled and the start property to determine start

* ox-taskjuggler.el (org-taskjuggler-get-start): Use both the
scheduled and the start property (if it is in
org-taskjuggler-valid-resource-attributes) to determine the
start of a task or the project.

Thanks to John Hendy for the report and thorough analysis.
This commit is contained in:
Christian Egli 2013-04-24 10:20:54 +02:00
parent fea4b5c3ad
commit 7187fdcb9d

View File

@ -458,7 +458,10 @@ ITEM is a headline. Return value is a string."
ITEM is a headline. Return value is a string or nil if ITEM
doesn't have any start date defined.."
(let ((scheduled (org-element-property :scheduled item)))
(and scheduled (org-timestamp-format scheduled "%Y-%02m-%02d"))))
(or
(and scheduled (org-timestamp-format scheduled "%Y-%02m-%02d"))
(and (member 'start org-taskjuggler-valid-resource-attributes)
(org-element-property :START item)))))
(defun org-taskjuggler-get-end (item)
"Return end date for task or resource ITEM.