Hello,
I have created a web-panel plugin for issue using Velocity, this panel reads some rest data (provided by the plugin itself) with JavaScript. Now I would like to add some details of the issue (eg. Issue Type, Issue Priority, Issue Number). Based on this issue details the web-panel will display different output.
- Is it possible to read the issue details in Velocity itself somehow?
- Do I need to create a Java class that will read the issue details first and pass it then to my Velocity template as parameters? If so – how do I invoke/call this class? As in plugin-context.xml there is just this Velocity file as a resource:
<web-panel key="Issue plugin" location="atl.jira.view.issue.right.context">
<resource name="view" type="velocity" location="/templates/view.vm"/>
</web-panel>
Many thanks for any hints/help