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

jira-menu-items plugin tutorial: messed up top navigation bar

David Chou June 14, 2012

Hello,

My first plugin development: i'm following: https://developer.atlassian.com/display/JIRADEV/Plugin+Tutorial+-+Adding+your+own+Menu+Items+to+JIRA. It turned out it looks like this:

The quick search was repositioned under the navigation bar, random bullet, and 'Quick Search' is float at the top.

is it the 'weights' that need to adjust to play nicely? my atlassian-plugin.xml has

<web-section key="my_links_section" name="Link in Nav" location="my_links_link" weight="10"/>
<web-item key="my_links_link" name="Wiki Link" section="system.top.navigation.bar" weight="47">

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
H S August 27, 2012

Hi,

thank you for the answer. It works for me, too.

If you insert only one web-item, you have to leave the web-section out.

H S

0 votes
H S August 26, 2012

Hi,

same problem here. Also Projects button isn't working when the plugin is activated.

Any solutions yet?

David Chou August 26, 2012

Hey H S,

Here is what my atlassian-plugin.xml file looks like, it works for me now

&lt;atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}" plugins-version="2"&gt;
    &lt;plugin-info&gt;
        &lt;description&gt;${project.description}&lt;/description&gt;
        &lt;version&gt;${project.version}&lt;/version&gt;
        &lt;vendor name="${project.organization.name}" url="${project.organization.url}" /&gt;
    &lt;/plugin-info&gt;
	
    &lt;web-item key="my_links_link" name="Wiki Link" section="system.top.navigation.bar" weight="60"&gt;
        &lt;label&gt;Wiki&lt;/label&gt;
        &lt;link linkId="my_links_link"&gt;http://GOOGLE.com&lt;/link&gt;
    &lt;/web-item&gt;
&lt;/atlassian-plugin&gt;

TAGS
AUG Leaders

Atlassian Community Events