Hi All,
I am trying to retrieve summary of current issue and display it on an issue tab panel.
this is how i am doing it...
public String retSummary(){
JiraHelper jiraHelper = new JiraHelper();
Issue currentIssue = (Issue) jiraHelper.getContextParams().get("issue");
String summary = currentIssue.getSummary();
return summary;
}
public void populateVelocityParams(Map params){
params.put("issue", this);
}and in the velocity template, if i call $issue.retSummary().
i am getting the bellow error in the issue tab panel
An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug. Details: ------- org.apache.velocity.exception.MethodInvocationException: Invocation of method 'retSummary' in class com.sts.tabpanel.Velocity threw exception java.lang.NullPointerException at com.sts.tabpanel.tabpanel.test4:perforce/templates/tabpanels/perforce.vm[line 15, column 37] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284) at
and so on...
What mistake have i done? or is it the right way of retrieving current issue details?
if not, please suggest the right way of doing it.
Many thanks,
Sharath TS