Re: [O] taskjuggler subtract scheduled and deadline

2018-05-17 Thread edgar

Bastien  writes:

AFAIK there isn't. Your patch was good start, but your expressions
inside the (or ...) were such that the one that collected the time was
never executed.

I see three options:

1. Hack the exported taskjuggler file. A hack but gets the job done
2. Try to use the START attribute on the node
3. Improve the source of ox-taskjuggler.el as you've started.

Hope that helps
Christian


Thank you, Christian and Bastien. I will try to work on this and get 
back to the list :) .


-

ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the 
NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!  
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!  



Re: [O] taskjuggler subtract scheduled and deadline

2018-05-15 Thread Christian Egli
Bastien  writes:

> @Christian: I don't remember if you are still using and
> maintaining ox-taskjuggler.el -- feel free to correct me
> if I'm wrong!

No I'm barely using it anymore, let alone maintaining it.

As for Edgars question

> Is there a way to set starting and ending times with a resolution of
> hours or minutes to be exported with taskjuggler?

AFAIK there isn't. Your patch was good start, but your expressions
inside the (or ...) were such that the one that collected the time was
never executed.

I see three options:

1. Hack the exported taskjuggler file. A hack but gets the job done
2. Try to use the START attribute on the node
3. Improve the source of ox-taskjuggler.el as you've started.

Hope that helps
Christian

-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland




Re: [O] taskjuggler subtract scheduled and deadline

2018-04-26 Thread Bastien
Hi Edgar,

sorry your question didn't receive answer - I'm copying
ox-taskjuggler.el maintainers in case that helps.

@Christian: I don't remember if you are still using and
maintaining ox-taskjuggler.el -- feel free to correct me
if I'm wrong!

Thanks,

-- 
 Bastien



[O] taskjuggler subtract scheduled and deadline

2017-12-26 Thread edgar

Hello,

I am trying this:

#+BEGIN_SRC org
  ,* TODO Pay the rent 
:taskjuggler_project:

  SCHEDULED: <2017-12-29 Fri 09:00> DEADLINE: <2017-12-29 Fri 11:00>
#+END_SRC

which gives me this:
#+BEGIN_EXAMPLE
  repeat.tjp:13: Error: The end date (2017-12-29-00:00-+) must be 
after the start date (2017-12-29-00:00-+).

#+END_EXAMPLE

I tried modifying ox-taskjuggler.el:
#+BEGIN_SRC diff
  ,*** org/ox-taskjuggler.el2017-12-26 16:39:52.633050180 -0700
  --- my/ox-taskjuggler.el  2017-12-26 19:42:17.921208465 -0700
  ,***
  ,*** 478,484 
  --- 478,490 
doesn't have any start date defined."
  (let ((scheduled (org-element-property :scheduled item)))
(or
  +  ;; How do I compile a regex to avoid locale day names?:
  +  ;; "%Y-%02m-%02d [[:alpha:][:space:]]* %[RT]"
 (and scheduled (org-timestamp-format scheduled "%Y-%02m-%02d"))
  +  (and scheduled (org-timestamp-format scheduled "%Y-%02m-%02d 
%R"))
  +  (and scheduled (org-timestamp-format scheduled "%Y-%02m-%02d %a 
%R"))
  +  (and scheduled (org-timestamp-format scheduled "%Y-%02m-%02d 
%T"))
  +  (and scheduled (org-timestamp-format scheduled "%Y-%02m-%02d %a 
%T"))

 (and (memq 'start org-taskjuggler-valid-task-attributes)
(org-element-property :START item)

  ,***
  ,*** 487,493 
ITEM is a headline.  Return value is a string or nil if ITEM
doesn't have any end date defined."
  (let ((deadline (org-element-property :deadline item)))
  ! (and deadline (org-timestamp-format deadline "%Y-%02m-%02d"



  --- 493,506 
ITEM is a headline.  Return value is a string or nil if ITEM
doesn't have any end date defined."
  (let ((deadline (org-element-property :deadline item)))
  ! ;; How do I compile a regex to avoid locale day names?:
  ! ;; "%Y-%02m-%02d [[:alpha:][:space:]]* %[RT]"
  ! (or
  !  (and deadline (org-timestamp-format deadline "%Y-%02m-%02d"))
  !  (and deadline (org-timestamp-format deadline "%Y-%02m-%02d 
%R"))
  !  (and deadline (org-timestamp-format deadline "%Y-%02m-%02d %a 
%R"))
  !  (and deadline (org-timestamp-format deadline "%Y-%02m-%02d 
%T"))
  !  (and deadline (org-timestamp-format deadline "%Y-%02m-%02d %a 
%T")





#+END_SRC

but I got the same error. Is there a way to set starting and ending 
times with a resolution of hours or minutes to be exported with 
taskjuggler? Thanks!


-

ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the 
NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!  
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!