Search macro sorting by lastModified due to wildcard
Platform Notice: Cloud and Data Center - This article applies equally to both cloud and data center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Problem
Using the search macro:
1
{search:query=*|lastModified=1d|spacekey=testspace|type=page,comment,blogpost|sort=modified|reverse=true}
This query displays everything except lastModified=1d.
Cause
The "query" parameter needs to be empty.
Resolution
An empty query (empty space) must be used. Try the following wiki markup:
1
{search:query= |lastModified=1d|spacekey=testspace|type=page,comment,blogpost|sort=modified|reverse=true}
Updated on April 8, 2025
Was this helpful?
Still need help?
The Atlassian Community is here for you.