Hi,
I am seeking a very old version (should it exist) from a few years ago for a particular page. We have over 1300 versions of a particular page and it is displaying only the last 100 versions. How can we get it to display older versions? There is no option to scroll or set date period? Is this a administrator setting?
Thanks
Hi @Yvette Sanders,
I was not aware of this limit and do not know a workaround in the UI.
However if you know some more details about the version you are looking for you could use the REST API to query for older versions....
GET /rest/api/content/2523138?status=historical&version=1
The above query will return the historical version 1 for the page with id 2523138.
The historical version contains additional data such as creation date or a link to this page version in Confluence ( _links section ).
{
"id": "2523138",
"type": "page",
"status": "historical",
"title": "BLANK CONFLUENCE Home",
"space": {
"id": 2555905,
"key": "BC",
"name": "BLANK CONFLUENCE",
"type": "global",
"_links": {
"webui": "/display/BC",
"self": "http://localhost:8090/rest/api/space/BC"
},
"_expandable": {
"metadata": "",
"icon": "",
"description": "",
"homepage": "/rest/api/content/2523138"
}
},
"history": {
"latest": false,
"createdBy": {
"type": "known",
"username": "admin",
"userKey": "40289249682d6ac801682d6d8b730000",
"profilePicture": {
"path": "/images/icons/profilepics/default.svg",
"width": 48,
"height": 48,
"isDefault": true
},
"displayName": "admin",
"_links": {
"self": "http://localhost:8090/rest/api/user?key=40289249682d6ac801682d6d8b730000"
},
"_expandable": {
"status": ""
}
},
"createdDate": "2019-01-11T08:24:50.488+01:00",
"_links": {
"self": "http://localhost:8090/rest/api/content/2523138/history"
},
"_expandable": {
"lastUpdated": "",
"previousVersion": "",
"contributors": "",
"nextVersion": ""
}
},
"version": {
"by": {
"type": "known",
"username": "admin",
"userKey": "40289249682d6ac801682d6d8b730000",
"profilePicture": {
"path": "/images/icons/profilepics/default.svg",
"width": 48,
"height": 48,
"isDefault": true
},
"displayName": "admin",
"_links": {
"self": "http://localhost:8090/rest/api/user?key=40289249682d6ac801682d6d8b730000"
},
"_expandable": {
"status": ""
}
},
"when": "2019-01-11T08:24:50.488+01:00",
"message": "",
"number": 1,
"minorEdit": false,
"hidden": false,
"_links": {
"self": "http://localhost:8090/rest/experimental/content/2523138/version/1"
},
"_expandable": {
"content": "/rest/api/content/2523138?status=historical&version=1"
}
},
"extensions": {
"position": "none"
},
"_links": {
"webui": "/pages/viewpage.action?pageId=2523142",
"edit": "/pages/resumedraft.action?draftId=2523142",
"tinyui": "/x/BoAm",
"collection": "/rest/api/content",
"base": "http://localhost:8090",
"context": "",
"self": "http://localhost:8090/rest/api/content/2523138?status=historical&version=1"
},
"_expandable": {
"container": "",
"metadata": "",
"operations": "",
"children": "/rest/api/content/2523138/child?parentVersion=1",
"restrictions": "/rest/api/content/2523138/restriction/byOperation",
"ancestors": "",
"body": "",
"descendants": "/rest/api/content/2523138/descendant"
}
}
Hope this helps a little bit.
Best, Tobias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.