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 ?
Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events