How to view the edit history of a comment in Confluence
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the server and data center platforms.
Currently, Confluence does not allow you to view previous versions of an edited comment. The aim of this KB is to display the history of an edited comment.
This SQL query will display all versions of a comment, the user that wrote the comment, and when they commented on it. The results will also be sorted in chronological order (from the original version down to the latest, current version).
SELECT c.contentid, bc.body AS comment, umlm.username AS commenter, c.lastmoddate AS dateCommented FROM BODYCONTENT bc JOIN CONTENT c ON bc.contentid=c.contentid JOIN user_mapping umc ON c.creator=umc.user_key JOIN user_mapping umlm ON c.lastmodifier=umlm.user_key WHERE c.contentid='<INSERT COMMENT ID>' OR c.prevver='<INSERT COMMENT ID>' ORDER BY c.lastmoddate;
Ensure you enter the comment ID where specified as
<INSERT COMMENT ID>.
Was this helpful?Yes Provide feedback about this article