Adding new tabs in the Browse Version screen
In this recipe, we will see how to add a new tab in the Browse Version screen. This screen holds details of a particular version in JIRA.
Getting ready
Create a new skeleton plugin using the Atlassian Plugin SDK.
How to do it...
The following are the steps to create a new version tab panel. It is very similar to creating a new project tab panel, except for the obvious changes in the files and keywords involved.
Define the version tab panel in
atlassian-plugin.xml
:<version-tabpanel key="jtricks-version-panel" i18n-name-key="versionpanels.jtricks.name" name="jtricks Version Panel" class="com.jtricks.JTricksVersionTabPanel"> <description>A sample Version Tab Panel</description> <label>JTricks Panel</label> <order>900</order> <resource type="velocity" name="view" location="templates/version/version-panel.vm" /> </version-tabpanel>
Here, the plugin module has a unique
key
attribute and should...