How to view the edit history of a comment in Confluence

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Purpose

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.

Solution

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

MySQL
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;

(info) Ensure you enter the comment ID where specified as <INSERT COMMENT ID>.

Last modified on Jun 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.