eval-data using data from another page

  • 1
  • Question
  • Updated 2 years ago
Hi

I'm still having problems trying to use data from another page in an eval-data macro

I currently have the below.


<ac:structured-macro ac:name="eval-data">          <ac:parameter ac:name="name">score</ac:parameter>
          <ac:parameter ac:name="format">##</ac:parameter>
          <ac:parameter ac:name="atlassian-macro-output-type">BLOCK</ac:parameter>
          <ac:plain-text-body><![CDATA[${num1}+${num3}+ (${max}]]></ac:plain-text-body>
        </ac:structured-macro>


<ac:structured-macro ac:name="report-on">          <ac:parameter ac:name="injected">true</ac:parameter>
          <ac:parameter ac:name="atlassian-macro-output-type">BLOCK</ac:parameter>
          <ac:rich-text-body>
            <ac:structured-macro ac:name="text-data">
              <ac:parameter ac:name="name">max</ac:parameter>
              <ac:parameter ac:name="atlassian-macro-output-type">BLOCK</ac:parameter>
              <ac:parameter ac:name="type">line</ac:parameter>
              <ac:rich-text-body>
                <p>
                  <ac:structured-macro ac:name="report-info">
                    <ac:parameter ac:name="source">%page:parent%</ac:parameter>
                    <ac:parameter ac:name="">data:maxvalue&gt;text:as number</ac:parameter>
                  </ac:structured-macro>
                </p>
              </ac:rich-text-body>
            </ac:structured-macro>
          </ac:rich-text-body>
        </ac:structured-macro>



The report-on macro returns the value i need. 

If i use a text-data macro without the report-on / report-info the data can be used in eval-data.

However, what seems to be happening is the text-data has to be rich-text in order to nest report-on and report-info. As this is rich-text the eval-data cannot convert that into 'pure text' 

i tried report-eval but I cannot get the eval-data to accept a variable.

I seem to be going round in circles. Any help appreciated.

Steve
Photo of Steve Boydon

Steve Boydon

  • 30 Posts
  • 3 Reply Likes

Posted 2 years ago

  • 1

There are no replies.