Adding new tabs in the View Issue screen

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.

Getting ready

Create a new skeleton plugin using the Atlassian Plugin SDK.

How to do it…

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.

  1. Define the Issue Tab Panel in the atlassian-plugin.xml:
           <issue-tabpanel key="jtricks-issue-tabpanel"        i18n-name-key="issuetabpanel.jtricks.name" ...

Get JIRA Development Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.