Rate this page:
Available: | Jira 3.0 and later. |
Changed: | Jira 5.0 – added the |
| Jira 5.0 – added the IssueTabPanel2 API. |
| Jira 6.0 – added the IssueTabPanel3 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).
Here is an example descriptor:
1 2 3 4 5
<issue-tabpanel key="custom-issue-tabpanel" name="Custom Tab Panel" class="com.atlassian.plugins.tutorial.IssueTabCustom">
<description>Show a custom panel.</description>
<label>Custom panel</label>
<supports-ajax-load>true</supports-ajax-load>
</issue-tabpanel>
For more information about the atlassian-plugin.xml
file, see the
Configuring the app descriptor page.
Here is a simple Java implementation:
1 2 3 4 5 6 7 8 9 10 11 12
public class IssueTabCustom extends AbstractIssueTabPanel3 {
@Override
public boolean showPanel(ShowPanelRequest showPanelRequest) {
return true;
}
@Override
public List<IssueAction> getActions(GetActionsRequest getActionsRequest) {
return Lists.newArrayList(new GenericMessageAction("first"), new GenericMessageAction(
this.descriptor.getI18nBean().getText("com.atlassian.plugins.tutorial.custom.issue.tab.panel.example")));
}
}
The module class specified in the class="..."
attribute must implement the IssueTabPanel3
interface.
To customize look of your items, implement your own IssueAction.
For more details, see Loading Issue Tab Panels with AJAX.
Rate this page: