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

Page Properties Report Macro Does Not Return Correct Results

    • 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
          105 kB
          Kok Yan Yong
        2. ppid.png
          70 kB
          Kok Yan Yong

            [CONFSERVER-36634] Page Properties Report Macro Does Not Return Correct Results

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2903583 ] New: CONFSERVER Bug Workflow v4 [ 2998191 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2801875 ] New: JAC Bug Workflow v3 [ 2903583 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2732337 ] New: JAC Bug Workflow v2 [ 2801875 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2397649 ] New: JAC Bug Workflow [ 2732337 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2295225 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2397649 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2231248 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2295225 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2190237 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2231248 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1922724 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2190237 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1725887 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1922724 ]
            Katherine Yabut made changes -
            Workflow Original: CONF Bug Subtask WF (TEMP) [ 1679094 ] New: Confluence Workflow - Public Facing - Restricted v3 [ 1725887 ]

              Unassigned Unassigned
              kyong Kok Yan Yong (Inactive)
              Affected customers:
              1 This affects my team
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: