I am trying to make a user macro that has a table of strings showing the page version, published date, contributor, and comments.
I am trying to use the VersionHistorySummary from the ContentEntityManager interface to get a list of VersionHistorySummary objects. Then use a foreach loop for building the table content.
I have tried the velocity template below in the user macro. However, the getVersionHistory is not seems to return anything.
#set($contentManagerClass=$content.class.forName('com.atlassian.spring.container.ContentEntityManager'))
#set($getVersionHistory=$containerManagerClass.getDeclaredMethod('getVersionHistorySummaries'))