I need to pull a combined list of the 'X' latest pages and comments for a specific space sorted by creation date (for display within another intranet application).
The space and content type restriction is no problem but I'm having trouble with the descending sort by creation date.
Is this possible via the search API? I've looked through the documentation and haven't found a way to do this yet (although it's possible via the regular Confluence search UI).
At the moment it's looking like I'm going to have to resort to a raw SQL query against the Confluence DB but I'd like to avoid that if possible.
You could use the undocumented AJAX API of the Recently Updated macro to get the list of recently updated pages and comments of a specific space. Here's what the URL could look like:
You would probably need to add HTTP basic authentication to get the content from outside of Confluence.
Hope this helps
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs