Issue Tab Panel Plugin Module

Available:

JIRA 3.0 and later

Changed:

JIRA 5.0 — added the <supports-ajax-load> configuration element.

JIRA 5.0 — added the IssueTabPanel2 API

The Issue Tab Panel plugin module allows you to add new tab panels to the View Issue screen.

You can add a new tab with a plugin, displaying information about a single issue (most likely pulled from an external source). This is how the Subversion and Perforce integration works.

Here is an example descriptor (from the Subversion plugin - source available):

<issue-tabpanel key="subversion-commits-tabpanel" name="Subversion Changes Tab Panel"
    class="com.atlassian.jira.plugin.ext.subversion.issuetabpanels.changes.SubversionRevisionsTabPanel">
    <resource type="i18n" name="i18n"
        location="templates.plugins.subversion.issuetabpanels.subversion_jira_plugin"/>
        <description>Show Subversion commits related to an issue in an issue tab panel.</description>
        <label>Subversion Commits</label>
    <resource type="velocity" name="view" location="templates/plugins/subversion/issuetabpanels/subversion-commits-view.vm"/>
</issue-tabpanel>

The module class specified in the class="..." attribute must implement the IssueTabPanel interface.

Supporting AJAX

JIRA 5.0 and later versions

Plugins can specify that their tabs can be loaded in an AJAX request, which is supported in JIRA 5.0 and later. Here is an example XML snippet that enables AJAX loading of an issue tab.

<issue-tabpanel key="example-tabpanel" name="A tab panel"
    class="com.example.AjaxCapableTabPanel">

    <!-- enable fast tab switch -->
    <supports-ajax-load>true</supports-ajax-load>
</issue-tabpanel>

See Loading Issue Tab Panels with AJAX for more details.

Was this page helpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport