emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Item task_id not being used in taskjuggler export


From: John Hendy
Subject: Re: [O] Item task_id not being used in taskjuggler export
Date: Mon, 1 Apr 2013 11:57:48 -0500

On Mon, Apr 1, 2013 at 11:38 AM, Nicolas Goaziou <address@hidden> wrote:
> John Hendy <address@hidden> writes:
>
>> On Mon, Apr 1, 2013 at 10:20 AM, Nicolas Goaziou <address@hidden> wrote:
>>> John Hendy <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]