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 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 theatlassian-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
and should define theclass
that implements the tab panel. It also has a list of elements, as explained as follows:description
: A description of the tab panellabel
: A human-readable label for the panelresource
:...