From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: [bug] ox-taskjuggler Date: Wed, 21 Jan 2015 07:31:44 -0600 Message-ID: References: <87iog1xj52.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c17dae9c585c050d299300 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDvNr-0005kO-45 for emacs-orgmode@gnu.org; Wed, 21 Jan 2015 08:31:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDvNp-0002R6-NH for emacs-orgmode@gnu.org; Wed, 21 Jan 2015 08:31:47 -0500 Received: from mail-oi0-x234.google.com ([2607:f8b0:4003:c06::234]:53626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDvNp-0002Qf-Hl for emacs-orgmode@gnu.org; Wed, 21 Jan 2015 08:31:45 -0500 Received: by mail-oi0-f52.google.com with SMTP id h136so15532507oig.11 for ; Wed, 21 Jan 2015 05:31:44 -0800 (PST) In-Reply-To: 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: =?UTF-8?Q?S=C3=B8ren_Aagaard_Mikkelsen?= Cc: emacs-orgmode --001a11c17dae9c585c050d299300 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Jan 21, 2015 7:09 AM, "S=C3=B8ren Mikkelsen" wrot= e: > > On 2015-01-20 22:00, Nicolas Goaziou wrote: > > Hello, > > > > S=C3=B8ren Mikkelsen writes: > > > >> I'm trying to use the taskjuggler exporter for getting an overview of my > >> project, and it seems to be straight forward if you know a bit about > >> Taskjuggler. > >> > >> However, tasks that are scheduled org-mode like, i.e., > >> > >> *** TODO My task > >> SCHEDULED: <2015-01-27 Tue> > >> > >> don't appear in the report. But, if I add a START property it will appear. > >> > >> *** TODO My task 2 > >> :PROPERTIES: > >> :start: 2015-03-01 > >> :END: > >> > >> I suspect it has something to do with l462-470: > >> > >> (defun org-taskjuggler-get-start (item) > >> "Return start date for task or resource ITEM. > >> 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))) > >> (or > >> (and scheduled (org-timestamp-format scheduled "%Y-%02m-%02d")) > >> (and (memq 'start org-taskjuggler-valid-task-attributes) > >> (org-element-property :START item))))) > >> > >> > >> I'm not that experienced in elisp, so I hope someone can help me. > > > > There is no bug in the snippet shown. > > > > "ox-taskjuggler" just doesn't use SCHEDULED to set start property for > > tasks. However, it will use SCHEDULED to set the start date for the > > project. > > > > Note that I don't use Taskjuggler, so I don't know if this is the right > > behaviour or not. > > > > > > Regards, > > > According to the org mode docs, assigning the start of a task should be > possible both ways: > > http://orgmode.org/worg/exporters/taskjuggler/ox-taskjuggler.html#sec-5 > > Or am I misinterpreting the docs? > Well, I wrote that , so you may be correctly interpreting docs written by someone who misunderstood! Perhaps the SCHUDULED property is just for the main project container. I don't see it actually used in any examples? Sorry if the confusion was my fault! John > -- > Best regards, > S=C3=B8ren Mikkelsen > > --001a11c17dae9c585c050d299300 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Jan 21, 2015 7:09 AM, "S=C3=B8ren Mikkelsen" <soren@aamikkelsen.dk> wrote:
>
> On 2015-01-20 22:00, Nicolas Goaziou wrote:
> > Hello,
> >
> > S=C3=B8ren Mikkelsen <smik@iha.= dk> writes:
> >
> >> I'm trying to use the taskjuggler exporter for getting an= overview of my
> >> project, and it seems to be straight forward if you know a bi= t about
> >> Taskjuggler.
> >>
> >> However, tasks that are scheduled org-mode like, i.e.,
> >>
> >> *** TODO My task
> >>=C2=A0 =C2=A0SCHEDULED: <2015-01-27 Tue>
> >>
> >> don't appear in the report. But, if I add a START propert= y it will appear.
> >>
> >> *** TODO My task 2
> >>=C2=A0 =C2=A0 =C2=A0:PROPERTIES:
> >>=C2=A0 =C2=A0 =C2=A0:start:=C2=A0 =C2=A0 2015-03-01
> >>=C2=A0 =C2=A0 =C2=A0:END:
> >>
> >> I suspect it has something to do with l462-470:
> >>
> >> (defun org-taskjuggler-get-start (item)
> >>=C2=A0 =C2=A0"Return start date for task or resource ITEM= .
> >> ITEM is a headline.=C2=A0 Return value is a string or nil if = ITEM
> >> doesn't have any start date defined."
> >>=C2=A0 =C2=A0(let ((scheduled (org-element-property :scheduled= item)))
> >>=C2=A0 =C2=A0 =C2=A0(or
> >>=C2=A0 =C2=A0 =C2=A0 (and scheduled (org-timestamp-format sche= duled "%Y-%02m-%02d"))
> >>=C2=A0 =C2=A0 =C2=A0 (and (memq 'start org-taskjuggler-val= id-task-attributes)
> >>=C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-element-property :START item)= ))))
> >>
> >>
> >> I'm not that experienced in elisp, so I hope someone can = help me.
> >
> > There is no bug in the snippet shown.
> >
> >=C2=A0 "ox-taskjuggler" just doesn't use SCHEDULED t= o set start property for
> > tasks. However, it will use SCHEDULED to set the start date for t= he
> > project.
> >
> > Note that I don't use Taskjuggler, so I don't know if thi= s is the right
> > behaviour or not.
> >
> >
> > Regards,
> >
> According to the org mode docs, assigning the start of a task should b= e
> possible both ways:
>
> http://orgmode.org/worg/exporters/taskjuggler/ox-taskjuggler.= html#sec-5
>
> Or am I misinterpreting the docs?
>

Well, I wrote that , so you may be correctly interpreting do= cs written by someone who misunderstood!

Perhaps the SCHUDULED property is just for the main project = container. I don't see it actually used in any examples?

Sorry if the confusion was my fault!
John
> --
> Best regards,
> S=C3=B8ren Mikkelsen
>
>

--001a11c17dae9c585c050d299300--