emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alexander Adolf via "General discussions about Org-mode." <emacs-orgmode@gnu.org>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: emacs-orgmode@gnu.org,
	"Sławomir Grochowski" <slawomir.grochowski@gmail.com>
Subject: Re: Summation of effort estimates in columnview dblock
Date: Fri, 16 Aug 2024 22:10:53 +0200	[thread overview]
Message-ID: <1183a28e8cff505c63c98878403e876d@condition-alpha.com> (raw)
In-Reply-To: <8734nc30dq.fsf@localhost>

Ihor Radchenko <yantar92@posteo.net> writes:

> Alexander Adolf <alexander.adolf@condition-alpha.com> writes:
> [...]
>> ---------------------------- Begin Quote -----------------------------
>> (54)
>> If more than one summary type applies to the same property, the parent
>> values are computed according to the first of them.
>> ----------------------------- End Quote ------------------------------
>>
>> At least for EFFORT, this seems ambiguous. I can have
>>
>>     :format "%EFFORT %EFFORT{:}"
>>
>> and both columns are present, and computed differently, whereas the
>> footnote can easily be read as hinting to the opposite. In fact, the
>> footnote is correct for all time format properties _except_ EFFORT.
>
> Not sure here. %EFFORT should not count. I tried the following:
>
> #+COLUMNS: %EFFORT{mean} %EFFORT{+}
> * Foo
> :PROPERTIES:
> :EFFORT:   15.0 <-- gets updated
> :END:
> ** Bar
> :PROPERTIES:
> :EFFORT:   20
> :END:
> ** Baz
> :PROPERTIES:
> :EFFORT:  10
> :END:
> [...]

Consider this example:

---------------------------- Begin Quote -----------------------------
#+BEGIN: columnview :maxlevel 2 :indent t :format "%ITEM(Task) %EFFORT(Estimated) %EFFORT(Estimated Total){:} %Time_Estimate(TE) %Time_Estimate(TE 2){:}  %CLOCKSUM(Clocked) %CLOCKSUM(Clocked Total){:}" :id global
| Task         | Estimated | Estimated Total | TE |    TE 2 | Clocked | Clocked Total |
|--------------+-----------+-----------------+----+---------+---------+---------------|
| Task 1       |        2d |         7d 0:00 | 2d | 7d 0:00 | 9d 0:00 | 9d 0:00       |
| \_  Task 1.1 |        3d |              3d | 3d |      3d | 3d 0:00 | 3d 0:00       |
| \_  Task 1.2 |        4d |              4d | 4d |      4d | 4d 0:00 | 4d 0:00       |
#+END:

* Task 1
:PROPERTIES:
:EFFORT:   2d
:TIME_ESTIMATE: 2d
:END:
:LOGBOOK:
CLOCK:  => 16:00
:END:

** Task 1.1
:PROPERTIES:
:EFFORT:   3d
:Time_Estimate: 3d
:END:
:LOGBOOK:
CLOCK:  => 24:00
:END:

** Task 1.2
:PROPERTIES:
:EFFORT:   4d
:Time_Estimate: 4d
:END:
:LOGBOOK:
CLOCK:  => 32:00
:END:
----------------------------- End Quote ------------------------------

The EFFORT and TIME_ESTIMATE properties for "Task 1" will never get
updated for as long as the column specification without summary comes
first. Swap the order of columns for EFFORT, or TIME_ESTIMATE, and the
respective property of "Task 1" will get updated.

Thus, the computation of the parent values is done as expected. The only
thing that seems determined by the first column specification for a
property, is the updating of the parent property's value.

In that light, I think it could seem helpful, in addition to the three
other changes I had suggested, to update the wording of footnote 54,
too. "Parent values" seems ambiguous, as it could be read as referring
to the values in the table, whereas my experiments seem to hint to it
rather referring to the value of the parent's property.


Looking forward to your thoughts,

  --alexander


  reply	other threads:[~2024-08-16 20:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-07 16:24 Summation of effort estimates in columnview dblock Alexander Adolf via General discussions about Org-mode.
2024-08-07 19:48 ` Ihor Radchenko
2024-08-08 17:43   ` Alexander Adolf via General discussions about Org-mode.
2024-08-10 14:42     ` Ihor Radchenko
2024-08-16 20:10       ` Alexander Adolf via General discussions about Org-mode. [this message]
2024-08-18 12:08         ` Ihor Radchenko
2024-08-17 16:39       ` Alexander Adolf via General discussions about Org-mode.
2024-08-18 12:23         ` Ihor Radchenko
2024-08-20 13:06           ` Alexander Adolf via General discussions about Org-mode.
2024-08-23 13:32             ` [PATCH] " Alexander Adolf via General discussions about Org-mode.
2024-08-25 13:02               ` Ihor Radchenko
2024-08-26 16:44                 ` Alexander Adolf via General discussions about Org-mode.
2024-08-30 15:42                 ` Alexander Adolf via General discussions about Org-mode.

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=1183a28e8cff505c63c98878403e876d@condition-alpha.com \
    --to=emacs-orgmode@gnu.org \
    --cc=alexander.adolf@condition-alpha.com \
    --cc=slawomir.grochowski@gmail.com \
    --cc=yantar92@posteo.net \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).