From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Item task_id not being used in taskjuggler export Date: Mon, 1 Apr 2013 11:57:48 -0500 Message-ID: References: <87eheutjpz.fsf@gmail.com> <876206th04.fsf@gmail.com> <87wqsmryt0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMi3M-0007wC-2o for emacs-orgmode@gnu.org; Mon, 01 Apr 2013 12:57:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UMi3J-0006Sk-TO for emacs-orgmode@gnu.org; Mon, 01 Apr 2013 12:57:51 -0400 Received: from mail-lb0-f170.google.com ([209.85.217.170]:38851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMi3J-0006SK-LI for emacs-orgmode@gnu.org; Mon, 01 Apr 2013 12:57:49 -0400 Received: by mail-lb0-f170.google.com with SMTP id x11so2134756lbi.15 for ; Mon, 01 Apr 2013 09:57:48 -0700 (PDT) In-Reply-To: <87wqsmryt0.fsf@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: Nicolas Goaziou Cc: emacs-orgmode On Mon, Apr 1, 2013 at 11:38 AM, Nicolas Goaziou wrote: > John Hendy writes: > >> On Mon, Apr 1, 2013 at 10:20 AM, Nicolas Goaziou wrote: >>> John Hendy writes: >>> >>>> I still have the issue of depending on a task not in the current >>>> subtree, but perhaps I'm just not using the exporter correctly: >>> >>> There was indeed a bug in the dependencies formatting. It should now be >>> fixed in master. Could you confirm it? >>> >>>> *** Task >>>> :PROPERTIES: >>>> :task_id: M2 >>>> :depends: ??? what goes here to depend on T.T8 ??? >>> >>> It should be :depends: T8 >>> >>> Thank you for the feedback. >>> >> >> That *would* work, but ox-taskjuggler has to correct for the fact that >> T8 does not live in M2's bucket (M). Using T8 gives me this: >> >> >> #+begin_src TJ >> task M2 "Task" { >> depends !T8 >> milestone >> } >> #+end_src > > I cannot reproduce it. With: > > * Project :taskjuggler_project: > > ** Milestones :M: > *** Task > :PROPERTIES: > :task_id: M2 > :depends: T8 > :END: > > ** Technical :T: > :PROPERTIES: > :task_id: T > :END: > *** Task > :PROPERTIES: > :task_id: T8 > :duration: 1d > :END: > > I get: > > task project "Project" { > purge allocate > allocate nicolas > task milestones "Milestones" { > task M2 "Task" { > depends !!T.T8 > milestone > } > } > task T "Technical" { > task T8 "Task" { > duration 1d > } > } > } > > which looks correct. Did you reload Org properly after update? Process: - Save your patch to ~/Downloads/patch.patch - cd ~/.elisp/org.git - git branch tj-test - git checkout tj-test - patch -p1 < ~/Downloads/patch.patch - make clean && make - start fresh Emacs session What perplexes me is that the id's mostly work (showing that the patch definitely changed from the master branch behavior), but not the same as you. With no task_id for Milestones, I'm getting: task nil "Milestones" { and you're getting task milestones "Milestones" { I'm also not getting the resolving of non-sibling depends attributes (getting just !T8 instead of !!T.T8). Did I not apply the patch or rebuild org properly? I'm pretty bad with git, and it surprises me that `git status` shows that ox-taskjuggler is modified when I switch back to master. I would have expected that my master branch would be oblivious to the changes I made on the tj-test branch (with `git branch tj-test && git checkout tj-test`). Thanks, John > > > Regards, > > -- > Nicolas Goaziou