From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?U8O4cmVuIE1pa2tlbHNlbg==?= Subject: Re: [bug] ox-taskjuggler Date: Thu, 22 Jan 2015 12:55:57 +0100 Message-ID: References: <87iog1xj52.fsf@nicolasgoaziou.fr> <87d267ru9c.fsf@sbs.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEGMu-00085Z-9e for emacs-orgmode@gnu.org; Thu, 22 Jan 2015 06:56:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEGMp-0006GM-8y for emacs-orgmode@gnu.org; Thu, 22 Jan 2015 06:56:12 -0500 Received: from plane.gmane.org ([80.91.229.3]:44379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEGMo-0006Fl-QX for emacs-orgmode@gnu.org; Thu, 22 Jan 2015 06:56:07 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YEGMn-0005CJ-7m for emacs-orgmode@gnu.org; Thu, 22 Jan 2015 12:56:05 +0100 Received: from iha-nat.iha.dk ([130.225.184.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Jan 2015 12:56:05 +0100 Received: from soren by iha-nat.iha.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Jan 2015 12:56:05 +0100 In-Reply-To: <87d267ru9c.fsf@sbs.ch> 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: emacs-orgmode@gnu.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2015-01-22 11:21, Christian Egli wrote: > Søren Mikkelsen writes: > >> It would, however, make sense to be able to scheduled tasks >> where interpreted as the start time, if the org-file is used for >> more than just generating the report. > > I agree that it would make sense to use the scheduled date as the > start time. The same is probably true for DEADLINES as well. IIRC > there was a patch once for deadlines which I never managed to > integrate. > > Anyway what you would like doesn't seem very hard to implement: > Just add another statement to the (let*) of > org-taskjuggler--build-task where you get the start time using the > org-taskjuggler-get-start function. Then just insert the start time > in the (concat) statement maybe right after (and priority (format " > priority %s\n" priority)) > > Let me know if you need any help > > Thanks Christian > Thanks for suggestions. Well, even though I used emacs for quite some time my elisp programmering skills are on a very basic level, so I'll need some help. I've added (starttime (org-taskjuggler-get-start task)) in the let* and (and starttime (format " start %s\n" starttime)) after priority. It works, but only for tasks that aren't having a start attribute. It is possible to give a warning if the start attribute already exists and make the default one, the one specified in the attributes (drawer)? - -- Best regards, Søren Mikkelsen -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUwOVBAAoJECUE7rt2jWDwmKIH/RxqtwTf3WyMelI6BonAIraf BMF+Y7l+BBXbHDrYiKSW2SDCLuGFrbTaZn95tmom3YXfXAruJQlfe6orOeqPqiBM 0bt1ryvKq5ZdOzeHHFxyJilgHcuCeEtN6LTs1+URvTS4+8N5mnplnzCIGDbTKjiX M43spWsVWg39vrqQAqQUADQBHiNR/wq5WjRUiFW9cDpAOiDRkz1kwWb/QFkpjjjl KCa7EP5nQOySBpLjuPwPFUXuKWs7jP3NIxD4Wmsc3huQnCqJcCuTZKTcuLwPa+Co PGsYwIyoNQM5k/pctCw5XVTkQrK8eFEW/YtEPAqqRp8jmkIaZYXLevLceIWMOqo= =xdd0 -----END PGP SIGNATURE-----