Hello
I'm currently validating my upgrade from JIRA7 to JIRA8. Amongst my custom scripts, we had changed the email velocity files to include on 'comment added' event the history of (up to) 3 last comments. This was to help having a context.
The way I retrieved the comments was by getting the commentManager as follow:
#set ($componentAccessor = $constantsManager.getClass().forName('com.atlassian.jira.component.ComponentAccessor').newInstance())
#set ($commentManager = $componentAccessor.getCommentManager() )
However, now due to restrictions in security in JIRA8, it seems I ca no longer use the getClass method, hence this gives an error.
How can I get this manager now ?
Regards