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 votes
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
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

963 views 14 12
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