Creating Project Tab Panel using fragments
We have seen how to create a new Project
Tab
Panel
in the previous recipe. While this works in most cases, sometimes we would like to create the nice fragmented view in JIRA 4.1+. Here, each project tab panel has a list of fragments organized in two columns. We can create the fragments and order them so that they appear in a formatted way on clicking the new tab panel.
In this recipe, we will see how to create the project tab panel using fragments. Before we start, there are a couple of things worth mentioning.
We need to use the same package structure,
com.atlassian.jira.plugin.projectpanel.impl
, to create the fragment class, as we need to override the protected methods in it.The components used in creating the fragments are not available in the OSGI v2.0 plugins, and hence we have chosen to go with a v1.0 plugin.
How to do it...
Following are the steps to create a fragmented Project
Tab
Panel
.
Add the project tab panel module in
atlassian-plugin.xml...