I want to add a menu item in the top navbar of the atlassian plugin.

LijinR February 1, 2018

Hi, I am new to Atlassian. Can anyone help me?
Thanks in advance.

I am attaching a screenshot of what I need exactly.
atlassian_dropdown.PNG

3 answers

0 votes
Syed Muhammad Umair Mansoor October 14, 2023

Add the below code in your atlassian-plugin.xml file above </atlassian-plugin> tag


and modify it accordingly:

<web-section name="My Links Main Section" i18n-name-key="my-links-main-section.name" key="my_links_section"
location="my_links_link" weight="10"/>
<web-item key="my_links_link" name="Link on My Links Main Section" section="system.top.navigation.bar" weight="47">
<label>My Company</label>
<link linkId="my_links_link">http://www.hexoctagon.com</link>
</web-item>
<web-item key="website_link" name="Company Web Site" section="my_links_link/my_links_section" weight="10">
<label>Web Site</label>
<link linkId="website_link">http://www.hexoctagon.com</link>
</web-item>
<web-item key="documentation_link" name="Documentation Web Site" section="my_links_link/my_links_section"
weight="10">
<label>Documentation</label>
<link linkId="documentation_link">http://confluence.atlassian.com</link>
</web-item>
0 votes
White Software October 2, 2019

Hi @LijinR

We just released a bunch of new plugins Navigator family to let you create your own multi-level navigation bar menu. Please give them a try and if you need more features, let us know.

Navigator for Jira

Navigator for Confluence

Navigator for Bitbucket

Regards,

Omer

0 votes
Stephen Deutsch
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.
February 1, 2018

It seems like your screenshot is taken directly from this tutorial:

https://developer.atlassian.com/server/jira/platform/adding-menu-items-to-jira/

Your best course of action is to download the Atlassian SDK, download the source for the plugin: https://bitbucket.org/atlassian_tutorial/jira-menu-items-plugin, try to make some changes, and then package it up and install it in your Jira instance.

LijinR February 1, 2018

Hi Stephen Deutsch thank you for your fast reply. Actually I need dropdown in Confluence and not in Jira.

Stephen Deutsch
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.
February 1, 2018
Like # people like this
LijinR February 1, 2018

Thanks Stephen Deutsch it's works for me. But now I just add the script in one of my template file. So that it is working only when that page is loaded. Where should I add this script to show the dropdown in all my pages?

Stephen Deutsch
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.
February 2, 2018

Hi Lijin,

You should add it to the Custom HTML section of the General Settings.

Something like what is described here:

https://confluence.atlassian.com/confkb/how-to-add-a-site-wide-banner-165609599.html

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events