kvj/mobileorg-android — Issue #4: Wrong agenda hierarchy
Author: eugeneb
Created: 2012-01-17 17:43:40+00:00
State: open

There is a problem in Agenda Views.
I'm using heavily custom agenda views. And it seems agenda views a displayed incorrectly in MobileOrgNG.

I prepared an example to show this. In "PlansGTD.org" I have sime tasks with three different tags - FirstGroup, SecondGroup and ThirdGroup: http://pastebin.com/dsbBsHJ7.

I want to have three custom agenda views, each for tasks with particular tag. So in my ".emacs" file I set this:

(setq org-agenda-custom-commands
'(
("b" "MobileOrg"
((agenda)
(tags-todo "FirstGroup" ((org-agenda-overriding-header "First group")))
(tags-todo "SecondGroup" ((org-agenda-overriding-header "Second group")))
(tags-todo "ThirdGroup" ((org-agenda-overriding-header "Third group"))))))
(setq org-mobile-agendas (quote ("b")))

So in MobileOrg I should see three groups of tasks organized in respective subtrees. In Matburt/MobileOrg this works fine.
But in MobileOrgNG I have a problem. The hierarchy is completely wrong. It can be seen in this screenshot: http://s018.radikal.ru/i505/1201/d0/21d680a9bc4e.jpg

One can see three items with subtrees: "First group", "Second group" and "Third group". But each item has a subtree with only one (the first) task. The rest of all tasks are placed on the same hierarchy level as task groups. In the photo "First group" subtree is expanded and it has only one item in it's subtree - "Task 1.1".