we uprgraded our jira to version 5.0.5 today, before we were running version 4.2.4. In that version we had made a custom release notes template that would also show all comments made on an issue. To do that we had to be able to get a CommentManager object. We did this like this:

#foreach ($issue in $issueType.issues)
#if($issueType.issues.size() > 0)
    #set ($comments = $action.ComponentManager.CommentManager.getComments($issue))
    #if ($comments) 
       #foreach ($comment in $comments)
...

that worked fine in jira 4.2.4 however it isn't working anymore in jira 5.0.5, does anyone know how i can get a commentmanager object again when creating a custom release notes template in jira 5.0.5 or how to get a commentmanager object some other way, without using $action for example ?

link|improve this question
feedback

1 Answer

JiraWebActionSupport has the following deprecated method that provided the component manager object.

@Deprecated public ComponentManager getComponentManager() { return ComponentManager.getInstance(); }

and https://developer.atlassian.com/display/JIRADEV/Creating+a+Custom+Release+Notes+Template+Containing+Release+Comments has some Velocity code but looking at the 5.0.1 source it looks like Velocity is no longer being used?

I would file an Improvement at https://jira.atlassian.com/browse/JRA to add a getCommentManager method to JiraWebActionSupport.java

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.