From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann Hodique Subject: [PATCH v2 04/11] org-taskjuggler: fix milestone definition Date: Wed, 15 Aug 2012 21:11:49 +0200 Message-ID: <1345057917-69300-5-git-send-email-yann.hodique@gmail.com> References: <1345057917-69300-1-git-send-email-yann.hodique@gmail.com> Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1j0v-0004Tc-6T for emacs-orgmode@gnu.org; Wed, 15 Aug 2012 15:12:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1j0u-0002Ys-D2 for emacs-orgmode@gnu.org; Wed, 15 Aug 2012 15:12:21 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:38760) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1j0u-0002VT-5V for emacs-orgmode@gnu.org; Wed, 15 Aug 2012 15:12:20 -0400 Received: by mail-we0-f169.google.com with SMTP id s10so1410328wey.0 for ; Wed, 15 Aug 2012 12:12:19 -0700 (PDT) In-Reply-To: <1345057917-69300-1-git-send-email-yann.hodique@gmail.com> In-Reply-To: <1344164044-15059-1-git-send-email-yann.hodique@gmail.com> References: <1344164044-15059-1-git-send-email-yann.hodique@gmail.com> 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 Cc: Yann Hodique * org-taskjuggler.el (org-taskjuggler-open-task): task with end-only is also a milestone (deadline), task with length is not --- lisp/org-taskjuggler.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/org-taskjuggler.el b/lisp/org-taskjuggler.el index 93f0cc7..a18cdf8 100644 --- a/lisp/org-taskjuggler.el +++ b/lisp/org-taskjuggler.el @@ -689,8 +689,10 @@ org-mode priority string." (milestone (or (cdr (assoc "milestone" task)) (and (assoc "leaf-node" task) (not (or effort + (cdr (assoc "length" task)) (cdr (assoc "duration" task)) - (cdr (assoc "end" task)) + (and (cdr (assoc "start" task)) + (cdr (assoc "end" task))) (cdr (assoc "period" task))))))) (attributes org-export-taskjuggler-valid-task-attributes)) (insert -- 1.7.11.4