It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Dashboard, how do I hide the dashboard selector on the left

the selector for

https://xxxx.jira.com/secure/Dashboard.jspa on the left side of the screen takes up ~100 pixels wide by the height on the broswer.. Incredibly wasteful considering the dashboards dropdown in the header has the same options.

Can I hide the selector and make the dashboard go full wide, like it does when I only have 1 favorite dashboard?

8 answers

1 accepted

1 vote
Answer accepted

Every day I get the following e-mail:

---

The following questions of yours are still unresolved:

Please consider one of the following actions:

  • Accept an answer (click the grey check mark)
  • Answer your own question, then accept your answer (find the 'Answer my own question' link underneath your question)
  • Edit your question for clarification
  • Add a comment for more information from an existing answer
  • Close the question, if it's invalid

Please be a good Answers citizen!

Accepting answers on resolved questions earns you Karma points, and increases the chances that Answers' top contributors will answer your future questions. If your question is still legitimate and you'd like to await further answers, please do!

---

This is VERY annoying, considering there is no valid "answer" to my question.. It's a valid question, there is no answer, and it does not need clarification.. It needs Atlassian to do some development work to fix it.. So WTF am I to do?

After 6 months of these e-mail reminders.. I'm freaking annoyed with answers.. there is no good answer to this question..

Drag the dashboard menu to the left, over the other one and/ or press the border of it on the right (line becomes blue).

This code works well for me on Jira 5.1 in Firefox, Chrome and IE 9:

AJS.$(window).load(function() {
  AJS.$("ul.vertical").remove();
  AJS.$("#dashboard").attr("class", "dashboard");
});

I've placed the code in in the existing <script> tag in file "secure/views/dashboard.jsp". No Jira restart is required, just refresh the page. Changes will be lost after Jira upgrade.

And yes, it's also for standalone Jira only. But works better than what @Jamie Echlin suggested.

I mis-read what you said here, thought it said that Jamie's solution was better so kept trying to use his...

Anyway, I found that if you use this code in Jira 6.2, when you click on Manage Dashboards, the navbar on the left that has the links for Popular, Search, Favorite etc is hidden as well.

So this code fixes that:

AJS.$(window).load(function() {
  if (AJS.$("#filter_type_table").length == 0)
    AJS.$("ul.vertical").remove();
  AJS.$("#dashboard").attr("class", "dashboard");
});

Actually the above script also hides the navbar in the Manage Filters page. So this new script below should only affect the Dashboard screen:

AJS.$(window).load(function() {
  if (AJS.$("#dashboard").length &gt; 0)
  {
    AJS.$("ul.vertical").remove();
    AJS.$("#dashboard").attr("class", "dashboard");
  }
});

By adding this code snippet to a <script> element in the global announcement banner (Administration -> System -> Announcement Banner), the favorites list is hidden without any direct file modification.

Well, at least in 6.3 standalone

See my replies above, David, my last one dated Jun 23 at 10:59pm fixes the problem of favourites being hidden; only the dashboard nvabar will be hidden using this last version of the script.

Does this hide the dashboard navbar locally only, or is this a Jira-wide change? It would seem that going through the announcement banner might be jira-wide, but a script would be a local-only? Thanks!

Timothy, placing the script into the dashboard.jsp (as I initially suggested) affects only the dashboard page, obviously. I haven't tried to place it in the Announcement Banner, so can't comment on that.

Atlassian is very good at twiddling the icons and dashboard pie chart cosmetics, but not so great with actual functionality. Alas.  Alassian.

However, I have a sort-of solution that may work for you.  Even if you're OnDemand.

1) Write down all of your dashboard favorites

2) Then, delete all of your favorites, except for one that you use 90% of the time.

3) Then, go into Administration -> System -> Announcement Banner

4) Use the "link" markup to create hard-links to all of your (former) favorite dashboards

5) Voila.  No leftnav favorites.  All of them linkable as a new top nav

This only works if you have an org where you are a "JIRA Runner" that needs everyone to use basically the same handful of dashboards.  It's not for everyone!

So... total hack, but it happens to work for my company.

MJD

I all. I've tried this in JIRA 7.9 and it no longer works :-( Is there some other code that can achieve this? Thanks.

Hi @JBennett,

yes, it is possible to use another code without javascript (since javascript is no longer allowed in announcement banner due to security reasons) to hide dashboard selector panel from the dashboard (this panel is shown in case when user has more than one favourite dashboards)

I used following code (prefer this way over javascript) and it works for me in old (6.4.12) and new Jira (7.6, 7.11) versions, put it in announcement banner:

<style>
/* HIDE DASHBOARD LEFT PANEL WITH FAVOURITE DASHBOARD LINKS*/
#dashboard > .tabs.vertical {
  border-right: 0px !important;
}
#dashboard > .vertical.tabs {
    width: 0px !important;
}
#dashboard > .vertical.tabs + #dashboard-content {
    margin-left: 0px !important;
}
/* REMOVE BANNER TOP PADDING*/
#announcement-banner {
    padding: 0px !important;
}
</style>

Hope this answer will help other people ;)

Kliinnglills

Like # people like this

Is this code something you can use in your personal environment or does this have to be done at the JIRA installation level? If personal environment, where do I make this change?

 

Thanks!

This code should be pasted by Jira Administrator to the announcement banner of the Jira instance via menu Administration -> System ->Announcement Banner (so, no changes on Jira installation level are needed)

Thanks @kyona that works nicely! 

@Chris Penny I think the choices are either system-wide via the Announcement Banner, or use an add-on like Chrome Stylebot. The latter works well for me and doesn't impact anyone else.

Like Chris Penny likes this

I rid myself of that column by removing all favorited dashboards so that I now have only one dashboard.

Verify dashboard singularity @

  • "Dashboards" > "Manage Dashboards" > "Favorites"
  • "Dashboards" > "Manage Dashboards" > "My"

This is really annoying. Atlassian team should remove this. It's really, really pointless. I agree with you! Woul like to see Atlassian's reply on this.

Just a partial answer, but if you put this js somewhere, eg web resource context or announcement banner, it will do most of what you want:

AJS.$("#dashboard ul.vertical").hide()

AJS.$("#dashboard-content").css("position", "static")

It doesn't work quite right though, the frame behind is still in the old position. Also you will need a button/link to bring back the vertical tabs. Really, what they need is a slider like you have in fisheye/confluence.

Oh, this is ondemand? In that case forget my answer.

Yea, on demand, thanks though.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you