emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* count TODO in columnview
@ 2022-07-27 15:52 Uwe Brauer
  2022-07-28  5:39 ` [SOLVED] (was: count TODO in columnview) Uwe Brauer
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Brauer @ 2022-07-27 15:52 UTC (permalink / raw)
  To: emacs-orgmode


Hi 

I can count checkboxes but not TODOS in columnview it seems.

Here is an example
#+begin_src 

* Everything
  :PROPERTIES:
  :COLUMNS:   %TODO %ITEM  %Nr %Comp1 %Comp2  
  :COMP1:    [3/4]
  :COMP2:    [3/4]
  :TODO:      [ ] 
  :END:


** DONE Books
   :PROPERTIES:
   :Nr:       1
   :Comp1:     [X]
   :Comp2:     [X]
   :END:

** TODO Car
   :PROPERTIES:
   :Nr:       2
   :Comp1:     [X]
   :Comp2:     [X]
   :END:

** DONE Food
   :PROPERTIES:
   :Nr:       3
   :Comp1:    [ ]
   :Comp2:    [X]
   :END:

** WAIT Dr. Computer
   :PROPERTIES:
   :Nr:       4
   :Comp1:    [X]
   :Comp2:     [ ]
   :END:

#+BEGIN: columnview :maxlevel 2 :skip-empty-rows t :hlines 1 :indent nil  :format "%5TODO(Status) %5Nr(Nr) %5Comp1(Comp1){X/} %5Comp2(Comp2){X/}"
| Status | Nr | Comp1 | Comp2 |
|--------+----+-------+-------|
|        |    | [3/4] | [3/4] |
| DONE   |  1 | [X]   | [X]   |
| TODO   |  2 | [X]   | [X]   |
| DONE   |  3 | [ ]   | [X]   |
| WAIT   |  4 | [X]   | [ ]   |
#+END:


#+end_src

Any suggestion?

Regards 

Uwe Brauer 
-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [SOLVED] (was: count TODO in columnview)
  2022-07-27 15:52 count TODO in columnview Uwe Brauer
@ 2022-07-28  5:39 ` Uwe Brauer
  0 siblings, 0 replies; 2+ messages in thread
From: Uwe Brauer @ 2022-07-28  5:39 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1357 bytes --]

>>> "UB" == Uwe Brauer <oub@mat.ucm.es> writes:

> Hi 

> I can count checkboxes but not TODOS in columnview it seems.

> Here is an example

> #+begin_src 

According to https://orgmode.org/manual/Breaking-Down-Tasks.html

a simple [/] is enough, and indeed it is:

* Everything [/]

Which indeed it is 

After adding this and running org-todo I obtain 


#+begin_src 

* Everything [3/4]
  :PROPERTIES:
  :COLUMNS:   %TODO %ITEM  %Nr %Comp1 %Comp2  
  :COMP1:    [3/4]
  :COMP2:    [3/4]
  :TODO:      [ ] 
  :END:

** DONE Books
   :PROPERTIES:
   :Nr:       1
   :Comp1:     [X]
   :Comp2:     [X]
   :END:

** DONE Car
   :PROPERTIES:
   :Nr:       2
   :Comp1:     [X]
   :Comp2:     [X]
   :END:

** DONE Food
   :PROPERTIES:
   :Nr:       3
   :Comp1:    [ ]
   :Comp2:    [X]
   :END:

** WAIT Dr. Computer
   :PROPERTIES:
   :Nr:       4
   :Comp1:    [X]
   :Comp2:     [ ]
   :END:

#+BEGIN: columnview :maxlevel 2 :skip-empty-rows t :hlines 1 :indent nil  :format "%5TODO(Status) %5Nr(Nr) %5Comp1(Comp1){X/} %5Comp2(Comp2){X/}"
| Status | Nr | Comp1 | Comp2 |
|--------+----+-------+-------|
|        |    | [3/4] | [3/4] |
| DONE   |  1 | [X]   | [X]   |
| TODO   |  2 | [X]   | [X]   |
| DONE   |  3 | [ ]   | [X]   |
| WAIT   |  4 | [X]   | [ ]   |
#+END:



#+end_src

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-28  5:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-27 15:52 count TODO in columnview Uwe Brauer
2022-07-28  5:39 ` [SOLVED] (was: count TODO in columnview) Uwe Brauer

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).