Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Scaffolding eval data from group field

Reto Eggenberger
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 4, 2019

Hi,

I use the scaffolding addon.

Here an example:

  • Group Data (name: head)
    • Number Data (name: field1)
  • Group ends
  • Evaluate Data ${field1}

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.

2 answers

1 accepted

0 votes
Answer accepted
Reto Eggenberger
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 4, 2019

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.

https://ideas.atlassian.servicerocket.com/ideas/SCAF-I-64

0 votes
Sayed Bares _ServiceRocket_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 4, 2019

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.

Reto Eggenberger
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 4, 2019

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. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events