* taskjuggler subtract scheduled and deadline
@ 2017-12-27 2:52 edgar
2018-04-26 23:34 ` Bastien
0 siblings, 1 reply; 4+ messages in thread
From: edgar @ 2017-12-27 2:52 UTC (permalink / raw)
To: emacs-orgmode
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-+0000) must be
after the start date (2017-12-29-00:00-+0000).
#+END_EXAMPLE
I tried modifying ox-taskjuggler.el:
#+BEGIN_SRC diff
,*** org/ox-taskjuggler.el 2017-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"))))
\f
--- 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")))))
\f
#+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!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: taskjuggler subtract scheduled and deadline
2017-12-27 2:52 taskjuggler subtract scheduled and deadline edgar
@ 2018-04-26 23:34 ` Bastien
2018-05-15 8:44 ` Christian Egli
0 siblings, 1 reply; 4+ messages in thread
From: Bastien @ 2018-04-26 23:34 UTC (permalink / raw)
To: edgar; +Cc: Christian Egli, emacs-orgmode
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: taskjuggler subtract scheduled and deadline
2018-04-26 23:34 ` Bastien
@ 2018-05-15 8:44 ` Christian Egli
0 siblings, 0 replies; 4+ messages in thread
From: Christian Egli @ 2018-05-15 8:44 UTC (permalink / raw)
To: emacs-orgmode
Bastien <bzg@gnu.org> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: taskjuggler subtract scheduled and deadline
@ 2018-05-16 19:33 edgar
0 siblings, 0 replies; 4+ messages in thread
From: edgar @ 2018-05-16 19:33 UTC (permalink / raw)
To: emacs-orgmode
> Bastien <address@hidden> 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!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-05-17 13:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-27 2:52 taskjuggler subtract scheduled and deadline edgar
2018-04-26 23:34 ` Bastien
2018-05-15 8:44 ` Christian Egli
-- strict thread matches above, loose matches on Subject: below --
2018-05-16 19:33 edgar
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).