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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

Edited

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

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>

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.
Feb 01, 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.

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.
Feb 01, 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.
Feb 02, 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