-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
6.15.9, 7.19.2
-
None
-
4
-
Severity 3 - Minor
-
2
-
Issue Summary
The Page Properties Report macro does not sort correctly when using the "Sort by" display option on a column that contains dates that are added via a user macro, as opposed to using date picket.
Environment
In order for the test to be accurate, you need an existing Confluence instance with pages already created in different dates
Steps to Reproduce
- Create a user macro named "CreateDate" with the following code:
## @noparams #set( $createD = $content.getCreationDate())<time Datetime="$action.dateFormatter.formatGivenString("yyyy-MM-dd", $createD)"/>
- On the older page, add a Page Properties macro with the following table:
Description <enter some text> Created <insert the macro "CreateDate">
- On the newer page add a Page Properties macro as in the previous step;
- Add the label "testdate" to the 2 pages;
- Create a new page and add the Page Properties Report macro configured with the "testdate" label and the Sort by display option set to "Created".
Expected Results
The table should be sorted by the "Created" column.
Actual Results
The table is sorted by last modified date, as default.
Workaround
Currently there is no other workaround for this behavior except for entering date via the Date Picker macro. Clicking on the column with the dates will sort the table correctly as only the initial sorting is affected by this issue.
- relates to
-
CONFSERVER-59179 "Sort by" function in "Page Properties Report" macro doesn't work with @user mention, status macro and page links
- Long Term Backlog