Adding new tabs in the Browse Project screen
In this recipe, we will see how to add a new tab in the Browse Project screen.
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 project tab panel:
Define the project tab panel in
atlassian-plugin.xml
.<project-tabpanel key="jtricks-project-panel" i18n-name-key="projectpanels.jtricks.name" name="JTricks Panel" class="com.jtricks.JTricksProjectTabPanel"> <description>A sample Project Tab Panel</description><label>JTricks Panel</label> <order>900</order> <resource type="velocity" name="view" location="templates/project/project-panel.vm" /> </project-tabpanel>
Here, the plugin module has a unique
key
attribute and should define aclass
that implements the tab panel. It also has a list of elements, explained as follows:description
: A description of the tab panellabel
: A human-readable label for the panelresource...