From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: Re: Org Mode TOOD two way sync tool Date: Sun, 24 Jun 2012 12:07:52 -0500 Message-ID: <8762agsknr.fsf@grumps.lan> References: <4FE45EF9.8040307@grierwhite.com> <4FE47BA2.8010406@grierwhite.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiqFT-0004hK-BF for emacs-orgmode@gnu.org; Sun, 24 Jun 2012 13:05:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SiqFR-0002Q8-5a for emacs-orgmode@gnu.org; Sun, 24 Jun 2012 13:05:18 -0400 Received: from li424-160.members.linode.com ([50.116.34.160]:53329 helo=dustycloud.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiqFR-0002NX-0w for emacs-orgmode@gnu.org; Sun, 24 Jun 2012 13:05:17 -0400 In-Reply-To: (=?utf-8?Q?=22Aur=C3=A9lien?= Aptel"'s message of "Sun, 24 Jun 2012 15:15:19 +0200") 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?Aur=C3=A9lien?= Aptel Cc: orgmode@grierwhite.com, emacs-orgmode@gnu.org Hey Aur=C3=A9lien, This is great. I formerly worked on something similar: http://labs.creativecommons.org/2010/11/10/bridging-public-bugtrackers-and-= local-tasklists/ However... my solution was pretty hacky. I'd be interested to see if you come up with a generic solution that could have mapppings for multiple bugtrackers, and that could sync with bugtracking states so if the bug gets closed, the TODO does also, or at least that it warns as such, etc. Aur=C3=A9lien Aptel writes: > Hi, > > I'm working on a bugtracker sync tool for org-mode [1]. I'm using > org-element to parse org files, it does everything I need. > > It turns this > > > * TODO blah <2012-06-25> > :PROPERTIES: > :foo: bar > :END: > Foo bar > > into this: > > (org-data nil > (headline > (:raw-value "blah <2012-06-25>" :title > ("blah " > (timestamp > (:type active :value "<2012-06-25>"))) > :level 1 > :todo-keyword "TODO" > :todo-type todo > :timestamp "2012-06-25" > :foo "bar" :category "???") > (section > () > (property-drawer > (:properties (("foo" . "bar")))) > (paragraph > () > "Foo bar")))) > > > I've removed irrelevant stuff for the example but you can get get the > start/end point of each element from this structure. > Just call org-element-parse-buffer. > > 1: http://orgmode.org/w/org-sync.git