Is there some easy way i can implement a customizable top menu bar so i can navigate between confluence, jira, crowd etc?

Jørgen Fischer January 16, 2012

The ability to be able to customize a menu to display on top so people easily can navigate between fisheye, jira and confluence especially would be awsome.

Is there any way this is possible to implement? There is a very nice example at this link:

http://mifosforge.jira.com/browse/MIFOS

J

5 answers

1 vote
Jeremy Largman
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 11, 2013

Confluence 5 (out now) and JIRA 6 (out soon) will really help this. Just add applinks and it'll show up in the application navigator. Check the Confluence 5 Release Notes.

0 votes
Jeff Lamb November 28, 2012

I'm currently running Jira 4.2.2 and wrote a plugin that implements PluggableTopNavigation for a custom navigation bar. Unfortunately, this functionality is now depreciated.

My plugin added a `div` to the top of the Jira header that created a nice menu for use with our development pages. The source of the menu was hard-coded into the plugin and located as a static `menu.html` file on our server for sharing across different pages.

Since I'd have to completely redesign the plugin for Jira 5.2, I started searching for different ways to re-implement the menu. Here's what I settled on. It's not pretty, but it makes it so you don't have to write a plugin.

Change your announcement banner (quickly get there by typing 'gg', then search for announcement banner) to the following:

<script type="text/javascript">
      jQuery(document).ready(function() {
        jQuery.get("http://path.to.server/menu.html", function(data){
            jQuery("#header").prepend('<nav class="global" role="navigation">'+data+'</nav>');
            jQuery("#top-level-id-of-navbar a").css("color", "white")
        });
      });
    </script>

Replace the `menu.html` link with your own link. The color of the header was inherited by the links in my menu, so I had to change them back to white after inserting the html page.

The result looks identical to Jira 4.2.2, so I'm happy.

Melody Strauss June 18, 2019

Unless I am missing something Crowd doesn't off an announcement banner.

0 votes
Sheppe Pharis January 16, 2012

An even simpler solution is to just throw some appropriate HTML in the Announcement Banner (it's under Options & Settings in the admin pages).

Edit: to display the menu in Confluence you'd add the same HTML under the Custom HTML section of Confluence. Not sure that there's such a section in Bamboo/Fisheye/Crowd.

Jørgen Fischer January 16, 2012

This will be my short-term solution. Just some static links to aid ppl in navigation

Sheppe Pharis January 16, 2012

Cool! Don't forget to mark your accepted answer by hitting the checkmark to the right of it. :)

0 votes
Andrew Frayling
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.
January 16, 2012

Not as fancy as the example using Jira Studio, but one relatively easy way is to create a plugin to add extra menu items - https://developer.atlassian.com/display/JIRADEV/Plugin+Tutorial+-+Adding+your+own+Menu+Items+to+JIRA You could add all the extra links at the top level of the menu bar, or create one new top level item called "My Company Links" or something similar and have links to Fisheye, Confluence, etc. underneath that.

Andrew.

Jørgen Fischer January 16, 2012

I thought about doing this, but can you do this to confluence, fisheye, etc?

JamieA
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.
January 16, 2012

yeah... you can write a plugin for all the apps whereby you can insert some javascript, and thus create your own nav bar. In jira and conf it's more straightforward, although the plugin method is more reliable, because someone can accidentally blank out the announcement banner/

Andrew Frayling
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.
January 16, 2012

Here's a guide on how to add Web UI modules for Confluence https://developer.atlassian.com/display/CONFDEV/Plugin+Tutorial+-+Adding+your+own+Menu+Items+to+Confluence , with docs on which menu locations are available https://developer.atlassian.com/display/CONFDEV/Web+UI+Modules

Or you could write a Theme plugin - https://developer.atlassian.com/display/CONFDEV/Plugin+Tutorial+-+Writing+a+Confluence+Theme - have a look at the section "Add a Custom Layout" for a simple example of adding additional navigation above the main navigation.

Docs for Fisheye are availble at https://developer.atlassian.com/display/FECRUDEV/FishEye+Web+Item+Locations and
https://developer.atlassian.com/display/FECRUDEV/Web+Item+Module+Type

0 votes
JamieA
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.
January 16, 2012

That's jira studio, and unfortunately that code is closed source.

You can write your own which I have done... last time I said this I got mildly flamed, singed, let's say. Unfortunately I cannot release the code. It would be great if Atlassian open sourced this code. Maybe they could go the whole hog and ship the whole lot as a software appliance.

Jørgen Fischer January 16, 2012

Thanks for giving me some insight to this issue. As far as i can see jira studio was deprecated and they now want people to use OnDemand (their own hosting).

I agree with you that they should release this as an open source plugin so the community can develop this further. Some integration between all these great apps are needed :)

Suggest an answer

Log in or Sign up to answer