Adding new tabs in the Browse Component screen
In this recipe, we will see how to add a new tab in the Browse Component screen. This screen holds details of a particular component in JIRA, and the process of adding a new tab is much similar to adding a new version tab or project tab panel.
Getting ready
Create a new skeleton plugin using Atlassian Plugin SDK.
How to do it...
The following are the steps to create a new component tab panel.
Define the
Component
Tab
Panel
in theatlassian-plugin.xml
.<component-tabpanel key="jtricks-component-panel" i18n-name-key="componentpanels.jtricks.name" name="jtricks Component Panel" class="com.jtricks.JTricksComponentTabPanel">
<description>A sample Component Tab Panel</description> <label>JTricks Panel</label> <order>900</order> <resource type="velocity" name="view" location="templates/component/component-panel.vm" /> </component-tabpanel>
As in the case of a version tab panel, component tab panel...