emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matthew Lundin <mdl@imapmail.org>
To: Christopher DeMarco <demarco@maya.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Using the agenda to calculate how much work I have scheduled
Date: Thu, 15 Jan 2009 11:01:41 -0600	[thread overview]
Message-ID: <87mydsh5ai.fsf@fastmail.fm> (raw)
In-Reply-To: <20090115025608.GA11407@owl.prv.maya.com> (Christopher DeMarco's message of "Wed\, 14 Jan 2009 21\:56\:08 -0500")

Hi Christopher,

Christopher DeMarco <demarco@maya.com> writes:

> I want to have a realistic expectation of what I can accomplish in a
> day.  So I want each TODO to have a time estimate of how long I think
> it will take, and for the agenda to add them all up and tell me how
> terrible my day is going to be.
>

Yes, try the following custom agenda command:

,----
|  (setq org-agenda-custom-commands
|        '(("E" "Effort view" agenda "" 
| 	  ((org-agenda-ndays 1)
| 	   (org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp "\\* TODO"))))))
`----

> First attempt: I found wonderful code on Sacha Chua's blog[1] which
> does this, but org-agenda-get-day-entries seems to return *all* "TODO"
> entries -- but I want to limit to entries which have only one state
> ("TODO", not "WAITING" or "DONE").  Is that possible?
>
> Is there a better way of doing this, with my limited Lisp?  I have
> looked at the Effort property, but I can't see how to use that from
> within an agenda view -- and the ability to know "what time it is
> now", and to therefore know how I fare in my daily plan, is important
> to me.

I use the following settings in my emacs file, using properties to set
my estimated effort - you can try tweaking the settings to your liking

,----
| (setq org-global-properties '(("Effort_ALL" . "0:05 0:10 0:15 0:30 0:45 1:00 1:30 2:00 3:00 4:00 5:00 6:00 7:00 8:00")))
| (setq org-columns-default-format "%50ITEM(Task) %17Effort(Estimated Effort){:} %CLOCKSUM %20SCHEDULED %20DEADLINE")
`----

Then within the agenda view, I simply type C-c C-x C-c for a column
view that nicely sums up both the estimated effort on my todos for
today and the sum of the time I've spent on each item, so I can
quickly compare where I'm at vs. where I need to be.

One word of warning: if you have repeating tasks in your agenda, the
time for those tasks will include all clocked time to date, so this
could mess up your daily estimates. Also if your agenda includes
projects or todos with subtodos, the effort and clock sums will
reflect the subitems when you change the time in the agenda view.

If you want a really accurate grid of time clocked for the day, type
"R" for a clock report.

If you want to use the custom command above but jump right into agenda
view, you can add the following setting:

,----
|       (org-agenda-view-columns-initially t)
`----

Hope this helps,

Matt

  reply	other threads:[~2009-01-15 17:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-15  2:56 Christopher DeMarco
2009-01-15 17:01 ` Matthew Lundin [this message]
2009-01-16 21:39   ` Christopher DeMarco
2009-01-15 17:08 ` Manish
2009-01-16 21:49   ` Christopher DeMarco
2009-01-16 10:31 ` Olaf Dietsche

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mydsh5ai.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=demarco@maya.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: Using the agenda to calculate how much work I have scheduled' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this 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).