Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-36634

Page Properties Report Macro Does Not Return Correct Results

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Low Low
    • None
    • 5.7, 5.6.6
    • None

      Page Properties Report Macro return the first Page Properties Macro with Page Properties ID defined.

      1. Create a new page using the following Storage Format. (Let's name it "Test 1")
        <h1>Test 1.0</h1><ac:structured-macro ac:name="details"><ac:rich-text-body>
        <table>
        <tbody>
        <tr>
        <th>Project</th>
        <td>Test</td></tr>
        <tr>
        <th>Version</th>
        <td>1.0</td></tr>
        <tr>
        <th>Status</th>
        <td><ac:structured-macro ac:name="status"><ac:parameter ac:name="colour">Green</ac:parameter><ac:parameter ac:name="title">completed</ac:parameter><ac:parameter ac:name="" /></ac:structured-macro></td></tr>
        <tr>
        <th>Due Date</th>
        <td><time datetime="2015-01-04" />&nbsp;</td></tr></tbody></table></ac:rich-text-body></ac:structured-macro>
        <p>&nbsp;</p>
        <h1>Test 1.1</h1><ac:structured-macro ac:name="details"><ac:rich-text-body>
        <table>
        <tbody>
        <tr>
        <th>Project</th>
        <td>Test</td></tr>
        <tr>
        <th>Version</th>
        <td>1.1</td></tr>
        <tr>
        <th>Status</th>
        <td><ac:structured-macro ac:name="status"><ac:parameter ac:name="colour">Yellow</ac:parameter><ac:parameter ac:name="title">in progress</ac:parameter><ac:parameter ac:name="" /></ac:structured-macro></td></tr>
        <tr>
        <th>Due Date</th>
        <td><time datetime="2015-02-10" />&nbsp;</td></tr></tbody></table></ac:rich-text-body></ac:structured-macro>
        <p>&nbsp;</p>
        <h1>Test 1.2</h1><ac:structured-macro ac:name="details"><ac:parameter ac:name="id">test</ac:parameter><ac:rich-text-body>
        <table>
        <tbody>
        <tr>
        <th>Project</th>
        <td>Test</td></tr>
        <tr>
        <th>Version</th>
        <td>1.2</td></tr>
        <tr>
        <th>Status</th>
        <td><ac:structured-macro ac:name="status"><ac:parameter ac:name="colour">Red</ac:parameter><ac:parameter ac:name="title">Not Started</ac:parameter></ac:structured-macro></td></tr>
        <tr>
        <th>Due Date</th>
        <td><time datetime="2015-03-15" />&nbsp;</td></tr></tbody></table></ac:rich-text-body></ac:structured-macro>
        <p>&nbsp;</p>
        <h1>Test 1.3</h1><ac:structured-macro ac:name="details"><ac:rich-text-body>
        <table>
        <tbody>
        <tr>
        <th>Project</th>
        <td>Test</td></tr>
        <tr>
        <th>Version</th>
        <td>1.3</td></tr>
        <tr>
        <th>Status</th>
        <td><ac:structured-macro ac:name="status"><ac:parameter ac:name="colour">Red</ac:parameter><ac:parameter ac:name="title">Not Started</ac:parameter></ac:structured-macro></td></tr>
        <tr>
        <th>Due Date</th>
        <td><time datetime="2015-03-31" />&nbsp;</td></tr></tbody></table></ac:rich-text-body></ac:structured-macro>
      2. Create another new page using the following Storage Format. (Let's name it "Test 2")
        <h1>Test 2.0</h1><ac:structured-macro ac:name="details"><ac:rich-text-body>
        <table>
        <tbody>
        <tr>
        <th>Project</th>
        <td>Test</td></tr>
        <tr>
        <th>Version</th>
        <td>2.0</td></tr>
        <tr>
        <th>Status</th>
        <td><ac:structured-macro ac:name="status"><ac:parameter ac:name="colour">Green</ac:parameter><ac:parameter ac:name="title">completed</ac:parameter><ac:parameter ac:name="" /></ac:structured-macro></td></tr>
        <tr>
        <th>Due Date</th>
        <td><time datetime="2015-01-04" />&nbsp;</td></tr></tbody></table></ac:rich-text-body></ac:structured-macro>
        <p>&nbsp;</p>
        <h1>Test 2.1</h1><ac:structured-macro ac:name="details"><ac:parameter ac:name="id">atest2</ac:parameter><ac:rich-text-body>
        <table>
        <tbody>
        <tr>
        <th>Project</th>
        <td>Test</td></tr>
        <tr>
        <th>Version</th>
        <td>2.1</td></tr>
        <tr>
        <th>Status</th>
        <td><ac:structured-macro ac:name="status"><ac:parameter ac:name="colour">Yellow</ac:parameter><ac:parameter ac:name="title">in progress</ac:parameter><ac:parameter ac:name="" /></ac:structured-macro></td></tr>
        <tr>
        <th>Due Date</th>
        <td><time datetime="2015-02-10" />&nbsp;</td></tr></tbody></table></ac:rich-text-body></ac:structured-macro>
        <p>&nbsp;</p>
        <h1>Test 2.2</h1><ac:structured-macro ac:name="details"><ac:rich-text-body>
        <table>
        <tbody>
        <tr>
        <th>Project</th>
        <td>Test</td></tr>
        <tr>
        <th>Version</th>
        <td>2.2</td></tr>
        <tr>
        <th>Status</th>
        <td><ac:structured-macro ac:name="status"><ac:parameter ac:name="colour">Red</ac:parameter><ac:parameter ac:name="title">Not Started</ac:parameter></ac:structured-macro></td></tr>
        <tr>
        <th>Due Date</th>
        <td><time datetime="2015-03-15" />&nbsp;</td></tr></tbody></table></ac:rich-text-body></ac:structured-macro>
        <p>&nbsp;</p>
        <h1>Test 2.3</h1><ac:structured-macro ac:name="details"><ac:parameter ac:name="id">test2</ac:parameter><ac:rich-text-body>
        <table>
        <tbody>
        <tr>
        <th>Project</th>
        <td>Test</td></tr>
        <tr>
        <th>Version</th>
        <td>2.3</td></tr>
        <tr>
        <th>Status</th>
        <td><ac:structured-macro ac:name="status"><ac:parameter ac:name="colour">Red</ac:parameter><ac:parameter ac:name="title">Not Started</ac:parameter></ac:structured-macro></td></tr>
        <tr>
        <th>Due Date</th>
        <td><time datetime="2015-03-31" />&nbsp;</td></tr></tbody></table></ac:rich-text-body></ac:structured-macro>
      3. Add label "test" to both pages "Test 1" and "Test 2".
      4. Create another page that contains Page Properties Report macro using the following Storage Format. (Let's say Project Report)
        <p><ac:structured-macro ac:name="detailssummary"><ac:parameter ac:name="label">test</ac:parameter></ac:structured-macro></p>
      5. Save the page.
      6. Observe the result

      Expected Behaviour

      The Page Properties Report Macro should includes all Page Properties macro from both pages "Test 1" and "Test 2".

      Actual Behaviour

      Page Properties Report Macro only return the first Page Properties macro with Page Properties ID defined in both pages "Test 1" and "Test 2" even though the Page Properties ID field from the page properties report macro is empty. Please refer to the following image:

      Multiple Scenarios

      CONF-36631
      CONF-36633

        1. error.png
          error.png
          105 kB
        2. ppid.png
          ppid.png
          70 kB

              Unassigned Unassigned
              kyong Kok Yan Yong (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: