* taskjuggler - using gaplength or gapduration
@ 2014-02-12 20:11 frank
2014-02-12 21:22 ` John Hendy
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: frank @ 2014-02-12 20:11 UTC (permalink / raw)
To: emacs-orgmode
One issue that I am having is regarding gaplength and gapduration for
tasks. Under the TJ3 syntax, the command would be
" depends !!PHII {gapduration 7w} ".
I added gaplength and gapduration under ' Org Taskjuggler Valid Task
Attributes ' and added the following in my org-mode file:
*** PSF
:PROPERTIES:
:Task_id: PSF
:depends: PHII
:gaplength: 7w
:duration: 10d
:END:
The resulting export comes out:
depends !!PHII
duration 10d
gaplength 7w
which is incorrect. What am I doing wrong.
Frank
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: taskjuggler - using gaplength or gapduration
2014-02-12 20:11 taskjuggler - using gaplength or gapduration frank
@ 2014-02-12 21:22 ` John Hendy
2014-02-12 21:31 ` John Hendy
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: John Hendy @ 2014-02-12 21:22 UTC (permalink / raw)
To: frank; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1093 bytes --]
Looks correct to me?
:gaplength: 7w -> gaplength 7w
:duration: 10d -> duration 10d
Do you mean to try:
*** PSF
:PROPERTIES:
:Task_id: PSF
:depends: PHII
:gapduration: 7w
:duration: 10d
:END:
I've not used these attributes, but assuming you pasted your actual file
correctly to the email, it looks like the properties are being directly
mapped to tj attributes. Let me know if I've missed something!
Thanks,
John
On Wed, Feb 12, 2014 at 2:11 PM, frank <fab@breengeosci.com> wrote:
> One issue that I am having is regarding gaplength and gapduration for
> tasks. Under the TJ3 syntax, the command would be
> " depends !!PHII {gapduration 7w} ".
>
> I added gaplength and gapduration under ' Org Taskjuggler Valid Task
> Attributes ' and added the following in my org-mode file:
>
> *** PSF
> :PROPERTIES:
> :Task_id: PSF
> :depends: PHII
> :gaplength: 7w
> :duration: 10d
> :END:
>
> The resulting export comes out:
> depends !!PHII
> duration 10d
> gaplength 7w
>
> which is incorrect. What am I doing wrong.
>
> Frank
>
>
[-- Attachment #2: Type: text/html, Size: 2926 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: taskjuggler - using gaplength or gapduration
2014-02-12 20:11 taskjuggler - using gaplength or gapduration frank
2014-02-12 21:22 ` John Hendy
@ 2014-02-12 21:31 ` John Hendy
2014-02-12 22:44 ` Nicolas Goaziou
2014-02-13 10:54 ` Christian Egli
3 siblings, 0 replies; 5+ messages in thread
From: John Hendy @ 2014-02-12 21:31 UTC (permalink / raw)
To: frank; +Cc: emacs-orgmode
On Wed, Feb 12, 2014 at 2:11 PM, frank <fab@breengeosci.com> wrote:
>
> One issue that I am having is regarding gaplength and gapduration for tasks. Under the TJ3 syntax, the command would be
> " depends !!PHII {gapduration 7w} ".
>
> I added gaplength and gapduration under ' Org Taskjuggler Valid Task Attributes ' and added the following in my org-mode file:
>
Ah, my apologies. Now I understand. I think you'll need Nicholas' or
someone else's help with this regarding the tj3 exporter. The typical
mapping is simply:
- Org
:property: value
- tj3
task {
property value
}
I just re-read how gaplength and gapduration work, and you'll need new
mapping of the :property: value to the output format so it ends up in
curly braces. I didn't catch that initially. The gapduration and
gaplength docs don't really make that clear, but the depends page
does:
- http://www.taskjuggler.org/tj3/manual/depends.html
So, no, you didn't do anything wrong, I just don't think the exporter
is setup to handle this sort of mapping.
John
> *** PSF
> :PROPERTIES:
> :Task_id: PSF
> :depends: PHII
> :gaplength: 7w
> :duration: 10d
> :END:
>
> The resulting export comes out:
> depends !!PHII
> duration 10d
> gaplength 7w
>
> which is incorrect. What am I doing wrong.
>
> Frank
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: taskjuggler - using gaplength or gapduration
2014-02-12 20:11 taskjuggler - using gaplength or gapduration frank
2014-02-12 21:22 ` John Hendy
2014-02-12 21:31 ` John Hendy
@ 2014-02-12 22:44 ` Nicolas Goaziou
2014-02-13 10:54 ` Christian Egli
3 siblings, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2014-02-12 22:44 UTC (permalink / raw)
To: frank; +Cc: emacs-orgmode
Hello,
frank <fab@breengeosci.com> writes:
> One issue that I am having is regarding gaplength and gapduration for
> tasks. Under the TJ3 syntax, the command would be
> " depends !!PHII {gapduration 7w} ".
>
> I added gaplength and gapduration under ' Org Taskjuggler Valid Task
> Attributes ' and added the following in my org-mode file:
>
> *** PSF
> :PROPERTIES:
> :Task_id: PSF
> :depends: PHII
> :gaplength: 7w
> :duration: 10d
> :END:
>
> The resulting export comes out:
> depends !!PHII
> duration 10d
> gaplength 7w
>
> which is incorrect. What am I doing wrong.
I think it is, assuming PHII is already defined in the buffer,
:depends: PHII {gapduration 7w}
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: taskjuggler - using gaplength or gapduration
2014-02-12 20:11 taskjuggler - using gaplength or gapduration frank
` (2 preceding siblings ...)
2014-02-12 22:44 ` Nicolas Goaziou
@ 2014-02-13 10:54 ` Christian Egli
3 siblings, 0 replies; 5+ messages in thread
From: Christian Egli @ 2014-02-13 10:54 UTC (permalink / raw)
To: emacs-orgmode
Hi all
frank <fab@breengeosci.com> writes:
> One issue that I am having is regarding gaplength and gapduration for
> tasks. Under the TJ3 syntax, the command would be
> " depends !!PHII {gapduration 7w} ".
>
> I added gaplength and gapduration under ' Org Taskjuggler Valid Task
> Attributes ' and added the following in my org-mode file:
>
> *** PSF
> :PROPERTIES:
> :Task_id: PSF
> :depends: PHII
> :gaplength: 7w
> :duration: 10d
> :END:
>
> The resulting export comes out:
> depends !!PHII
> duration 10d
> gaplength 7w
>
> which is incorrect. What am I doing wrong.
gaplength and gapduration need special treatment of the exporter. They
need to be part of the depends statement. So it woll not work if you
just add them as properties. The dependencies section in the comments of
ox-taskjuggler.el has an example how this can be done:
;; * Training material
;; :PROPERTIES:
;; :task_id: training_material
;; :ORDERED: t
;; :END:
;; ** Markup Guidelines
;; :PROPERTIES:
;; :Effort: 2d
;; :END:
;; ** Workflow Guidelines
;; :PROPERTIES:
;; :Effort: 2d
;; :END:
;; * Presentation
;; :PROPERTIES:
;; :Effort: 2d
;; :BLOCKER: training_material { gapduration 1d } some_other_task
;; :END:
Now, I haven't tested this in a long time and AFAIK this used to work. I
don't know if it survived the port to the new exporter framework. I
would recommend that you try the above mentioned method. From looking at
the source code it seems that Nicolas implemented options on
dependencies.
Thanks
Christian
--
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-02-13 10:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-12 20:11 taskjuggler - using gaplength or gapduration frank
2014-02-12 21:22 ` John Hendy
2014-02-12 21:31 ` John Hendy
2014-02-12 22:44 ` Nicolas Goaziou
2014-02-13 10:54 ` Christian Egli
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).