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

Page Properties Report Macro Does Not Return Correct Results

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Duplicate
    • Affects Version/s: 5.7, 5.6.6
    • Fix Version/s: None
    • Component/s: None

      Description

      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

        Attachments

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

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              kyong Kok Yan Yong (Inactive)
              Participants:
              Last Touched By:
              Katherine Yabut
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Last commented:
                4 years, 12 weeks, 5 days ago