I studied the URL below:
https://developer.atlassian.com/display/JIRADEV/Project+Tab+Panel+Plugin+Module
But the page does not describe how to create a project tab panel class.
Which class does it extend?
<project-tabpanel key="TestKey" name="Test" class="?????"> <label key="Test Project Tab Panel"/> <order>20</order> </project-tabpanel>
Community moderators have prevented the ability to post new answers.
Implements AbstractProjectTabPanel and Override the methods given below and mention the name of the class in atlassian-plugin.xml.
e.g. class="com.atlassian.tutorial.helloworld.CustomProjectTabPanel"
<project-tabpanel key="custom-project-tab-panel" name="Custom Project Tab Panel" i18n-name-key="custom-project-tab-panel.name" class="com.atlassian.tutorial.helloworld.CustomProjectTabPanel"> <description key="custom-project-tab-panel.description">Custom Tab</description> <label key="custom-project-tab-panel.label"></label> <order>10</order> <resource type="velocity" name="view" location="templates/tabpanels/custom-project-tab-panel.vm"/> </project-tabpanel>
protected Map<String, Object> createVelocityParams(BrowseContext ctx) { String temp="test123"; Map<String, Object> params = super.createVelocityParams(ctx); params.put("tmp",temp); return params; } public String getHtml(BrowseContext ctx) { String temp="test123"; Map<String, Object> params = super.createVelocityParams(ctx); params.put("tmp",temp); return descriptor.getHtml("view", params); }
Hey @Onkar Ahire,
Great answer! I'm just having trouble to display my own icon on the project side bar. It is grouping all my project tabs inside a single item, like a submenu.
Do you have any clue?
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
com.atlassian.jira.plugin.projectpanel.ProjectTabPanel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.