We have seen how to enhance the UI by adding new sections and links to various locations. In this recipe, we will see how to add a new tab panel under the view issue page, similar to the existing panels, such as Comments, Change History, and so on.
Adding a new tab panel to the ViewIssue page can be done by the IssueTab PanelPluginModule. Following are the steps required to create a new issue tab panel that displays some static text with a greeting to the logged-in user.
Define the Issue Tab Panel in the
atlassian-plugin.xml
:<issue-tabpanel key="jtricks-issue-tabpanel" i18n-name-key="issuetabpanel.jtricks.name" name="Issue Tab Panel" class="com.jtricks.ui.tabs.JTricksIssueTabPanel"> <description>A sample Issue Tab Panel</description> <label>JTricks Panel</label> ...