From mboxrd@z Thu Jan  1 00:00:00 1970
From: cpb <cpb@snotbubble.com>
Subject: properties using other properties
Date: Tue, 23 Jan 2018 17:28:05 +1100
Message-ID: <86bmhlozre.fsf@snotbubble.com>
Mime-Version: 1.0
Content-Type: text/plain
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37676)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <cpb@snotbubble.com>) id 1eds47-0007F4-Bn
	for emacs-orgmode@gnu.org; Tue, 23 Jan 2018 01:28:17 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <cpb@snotbubble.com>) id 1eds44-00029h-Ow
	for emacs-orgmode@gnu.org; Tue, 23 Jan 2018 01:28:15 -0500
Received: from out15.nocdirect.com ([69.73.135.130]:43925)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <cpb@snotbubble.com>) id 1eds44-00028e-IX
	for emacs-orgmode@gnu.org; Tue, 23 Jan 2018 01:28:12 -0500
Received: from lotus.nocdirect.com ([209.140.30.14])
	by spamexperts02.nocdirect.com with esmtpsa
	(TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89)
	(envelope-from <cpb@snotbubble.com>) id 1eds41-0003Gr-90
	for emacs-orgmode@gnu.org; Tue, 23 Jan 2018 01:28:10 -0500
Received: from [101.191.77.67] (port=50390 helo=joey)
	by lotus.nocdirect.com with esmtps
	(TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1)
	(envelope-from <cpb@snotbubble.com>) id 1eds3z-0008EU-M4
	for emacs-orgmode@gnu.org; Tue, 23 Jan 2018 01:28:08 -0500
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode/>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
Sender: "Emacs-orgmode"
	<emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
To: emacs-orgmode@gnu.org


Is there a way to set properties using other properties?  Doesn't matter
if its on export only, though it would be nice to have it in-situ.

here's an example (obviously doesn't work), where a project properties
for the project client only needs the CLIENT property filled, the rest
of it automatically populates on export.  Would save having to duplicate
the data where there are a lot of projects.


* client1
    :PROPERTIES:
    :CUSTOM_ID:        client1
    :NAME:             a client
    :ADDRESS:          an address
    :EMAIL:            an email
    :URL:              a website
    :END:

* project1
    :PROPERTIES:
    :CUSTOM_ID:        project1
    :NAME:             a project
    :CLIENT:           client1
    :CLIENT_NAME:      {{{property(NAME,#{{{property(CLIENT)}}})}}}
    :CLIENT_ADDRESS:   {{{property(ADDRESS,#{{{property(CLIENT)}}})}}}
    :CLIENT_EMAIL:     {{{property(EMAIL,#{{{property(CLIENT)}}})}}}
    :EXPORT_FILE_NAME: ./a_project
    :END:

    project....: {{{property(NAME)}}}
    for........: {{{property(CLIENT)}}}
                 {{{property(CLIENT_ADDRESS)}}}
                 {{{property(CLIENT_EMAIL)}}}