Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to create a Project Tab Panel Plugin Module Class

Akira Tsuchiya
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 15, 2012

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>

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

4 votes
Onkar Ahire
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 16, 2012

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);
}
pelizza
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 27, 2016

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.

1 vote
Akira Tsuchiya
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 15, 2012

com.atlassian.jira.plugin.projectpanel.ProjectTabPanel

TAGS
AUG Leaders

Atlassian Community Events