How to check Cloud Confluence space last modified

Hi All,

Does any one know how to check when is a space in cloud version was last modified?


Trying to archive the unused spaces to tidy up our confluence, but found it difficult to do so.





Jack Hsia

1 answer

0 vote
Stephen Deutsch Community Champion Nov 16, 2017

I would assume that you are referring to when some action was performed in that space. Here's something I threw together real quick that will show the time when a page was last modified in that space. You can run it by pasting it into your browser console while you are logged into Confluence (usually brought up by pressing F12 or look for Developer tools in the browser menu) and it will return a list of spaces with the last modified date (should work for both Server and Cloud):

jQuery.ajax({dataType: 'json',
contentType: 'application/json',
type: 'POST',
url: contextPath + '/rpc/json-rpc/confluenceservice-v2/getSpaces',
success: function(spaces) {
jQuery(spaces).each(function() {
var space = this;
if (space.type === "global") {
url: contextPath + '/rest/api/content/search?cql=space%3D' + space.key + '%20and%20type%3Dpage%20order%20by%20lastmodified%20desc&expand=version&limit=1',
success: function(data) {
console.log( + "(" + space.key + ") - " + data.results[0].version.when);

 Also, if you're interested in managing pages better on your Confluence Cloud instance, you may want to check out Space Timeline, which allows you to manage pages easier.

Hi Stephen, 


Thank you very much for your help. 

It works very well. 

You've made my day.


Thanks again.


Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

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...

372 views 20 10
Join discussion

Atlassian User Groups

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!

Find my local user group

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

Groups near you