From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id iHsENBW0PGaDhgAAqHPOHw:P1 (envelope-from ) for ; Thu, 09 May 2024 13:31:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id iHsENBW0PGaDhgAAqHPOHw (envelope-from ) for ; Thu, 09 May 2024 13:31:33 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KU4o9C0P; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715254293; a=rsa-sha256; cv=none; b=usGaC7Ztt/SXBKrLgAhElp8NHBrzwiVDKmXl9xPs0j4zUKOxncGIjvppHGspsI93n8d6T9 oefXz1RzxRoyQs8kjAdJRWDrH+PySRKIRU4G4VJf+oUy5zF7iW6QR1WzYwAPKl9a2/QIov 1DGcLKHCbjMH8B8yQ0HCV9dKRQk14bGXNCBB6FeiR+gKu+ZBGT7tJidkU5zsLnfsMmajRq MYK2YtOWYezqxbXsB0AV37WG044JsS5H/fKpy3YTDOYj3QmDrhcKLMnW7KorK/z/62jkYs fLqCKio8v0aEpIn7UFTaCMVqqTBbmFzMrHo9/ke7/X6m6nvcQWF/qDjZOC0sxg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KU4o9C0P; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715254293; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=gTTJkcN+R/WH388FpIbuyHKpAPb7tlUywHToer6QdWE=; b=AAISg0VmVUR90awBXLHCICJa2xPLbqlrdI7510+1XrFI+yA78TW3BEqh2ZW5IaSdcfdVFC 5uRG2D+JliRbvV4WFBYoqGIwnPilrh/g+H0AvekQZETqv/bsXHuuDcAnlBGMpSGl8FtgLT r05mqTpK3G8dlDU32pucF2WIAabTGOADscRh1MSpSHpk7zILywDouk+XnjkrJsx2sZtc6f JGhRl9zmwe/4cyoHrIr10OiaK4pWoxdjVB7cnE1QBmwCGLi/Gz6BChHnekSmWJMi2zhFhY QI+Yl5DUddCt/bT1IWsdgMOTnowIql0g1806lQDhF0K+BwEuKgUPteGQZ/d3Sw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9E7C83670C for ; Thu, 9 May 2024 13:31:33 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s51z4-0005T9-3j; Thu, 09 May 2024 07:30:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s51yy-0005SK-Ah for emacs-orgmode@gnu.org; Thu, 09 May 2024 07:30:43 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s51yv-00033u-V7 for emacs-orgmode@gnu.org; Thu, 09 May 2024 07:30:39 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0F8C4240103 for ; Thu, 9 May 2024 13:30:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1715254235; bh=rhxoWFzWuFXqTxk77hXRu8OBi4vuSUTOWDSKPagdccQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=KU4o9C0Pz9eIyTc/oqVLm717KAF4/NrMneuriIEI8uzp/74IXPxVTNnW5G2DYL+mm bd7gXu0NuggljouYTS+7Ttpm0tbq5Zt+iQ3/qs4suixpb8CyGT7W4lYZ3KRB+6BQtH O9yA6bQSQK04/mVNhrw7NO5Bjktz9X8DbpPrt0dr4ZK0kqcbDT6XWutZMiNTisz932 HN21iZooJ1bgHXecPp0AvzG92P60rUm+7OMZ7vMVFlQX3rzYynWwDLIBQZqgk1UvqN orPwdvMFUfCuDKphTa6Sa4jGggwrBxjCSO7gPGeteoR81CiyUnxRtUtmMbqRPH8z5f c8/QFS7UJ4Y1Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VZqZL0rPBz9rxD; Thu, 9 May 2024 13:30:33 +0200 (CEST) From: Ihor Radchenko To: "Felix H. Dahlke" Cc: emacs-orgmode@gnu.org, info@protesilaos.com Subject: Re: [BUG] clocktable match doesn't seem to support matching items based on parent property [9.6.15 (release_9.6.15 @ /snap/emacs/current/usr/share/emacs/29.3/lisp/org/)] In-Reply-To: <8acdd46f-4137-4957-bb52-827d817eb5e7@uberco.de> References: <8acdd46f-4137-4957-bb52-827d817eb5e7@uberco.de> Date: Thu, 09 May 2024 11:32:03 +0000 Message-ID: <874jb7kyq4.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 9E7C83670C X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.60 X-Spam-Score: -9.60 X-TUID: aJlzu7EEphmB "Felix H. Dahlke" writes: > I want to create a clocktable report for all items under a specific > heading, using the match keyword and the ITEM property. It appears > that matching items this way won't include any subheadings, therefore > not showing their times in the clocktable. It is expected. ITEM property is the heading text without stars, todo keyword, priority, and tags. It has nothing to do with parent headings. So, when you ask Org mode to match against specific ITEM, it will only include headings with their own title matching the search criteria for ITEM. In contrast, tags are inherited by default, so that heading tags include the local tags and also parent tags. > Example: > > * Level 1 :level_1: > ** Level 2 > :PROPERTIES: > :LEVEL: 1 > :END: > > *** Level 3 > :LOGBOOK: > CLOCK: [2024-05-07 Tue 11:00]--[2024-05-07 Tue 12:00] => 1:00 > :END: > > * Report matching the ITEM property doesn't work > #+BEGIN: clocktable :scope file :match "ITEM=\"Level 1\"" > #+CAPTION: Clock summary at [2024-05-07 Tue 13:00] > | Headline | Time | > |--------------+--------| > | *Total time* | *0:00* | > #+END: This is expected, because clock data is not calculated in the headlines that do not match the :match criteria. This includes subtrees. > * Report matching an arbitrary property doesn't work > #+BEGIN: clocktable :scope file :match "LEVEL=\"1\"" > #+CAPTION: Clock summary at [2024-05-07 Tue 13:00] > | Headline | Time | > |--------------+--------| > | *Total time* | *0:00* | > #+END: > > Note that this _does_ work if ~org-use-property-inheritance~ is not > ~nil~. LEVEL is not an arbitrary property. It is headline level. I am not sure what you got things "work" when you enable property inheritance - not for LEVEL. Not a bug. Canceled. In future, the plan is to adopt org-ql syntax for matching headlines. It will be more flexible and allow matching outline-path in addition to current heading title/ITEM. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at