Hi,
I use the scaffolding addon.
Here an example:
But this does not get evaluated. What is the right syntax to access a field within the group?
ps. there should be a variables reference in the scaffolding documentation, or did I miss out on something?
Reto E.
Right now, it is not possible with the evaluate-data macro.
I raised a feature request. Feel free to vote for it, if you find it to be useful.
Reto,
Can you share with us storage format of the page?
In the time being, the following documentation might help you with usage of Group data macro.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here the storage format:
<p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="number-data" ac:schema-version="1" ac:macro-id="9775bf7a-3408-463d-9ec3-0ed05d8f99df"><ac:parameter ac:name="name">field0</ac:parameter><ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter></ac:structured-macro> <p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="group-data" ac:schema-version="1" ac:macro-id="00d0b71d-0be0-4356-8338-e49b712b8400"><ac:parameter ac:name="name">group1</ac:parameter><ac:rich-text-body> <p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="number-data" ac:schema-version="1" ac:macro-id="4e6ed5a5-eb64-41d4-afc1-64b5bea6278e"><ac:parameter ac:name="name">field1</ac:parameter><ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter></ac:structured-macro> <p class="auto-cursor-target"><br /></p></ac:rich-text-body></ac:structured-macro> <p class="auto-cursor-target"><br /></p> <p>Field outside group:</p><ac:structured-macro ac:name="eval-data" ac:schema-version="1" ac:macro-id="cf83dd6b-4946-4487-84f3-4c85d548dc72"><ac:parameter ac:name="name">eval0</ac:parameter><ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter><ac:plain-text-body><![CDATA[${field0}]]></ac:plain-text-body></ac:structured-macro> <p class="auto-cursor-target"><br /></p> <p><br /></p> <p>Field inside group:</p><ac:structured-macro ac:name="eval-data" ac:schema-version="1" ac:macro-id="21bf54b3-555b-4be7-a5c9-e5f507402d09"><ac:parameter ac:name="name">eval1</ac:parameter><ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter><ac:plain-text-body><![CDATA[${field1}]]></ac:plain-text-body></ac:structured-macro> <p class="auto-cursor-target"><br /></p>
The problem is the second last line with the eval1 macro. There I want to access the field1 with ${field1}. But this doesn't work, because field1 is inside a group. I have to specify the group somehow, I guess.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.