Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding the Agile Link from the login page

VijaykarthikaG
March 15, 2012

In JIRA 445, Agile link is seen on the topmost left corner of the login page even before a user logs in. How can this be hidden?

2 answers

1 vote
Dennis Kromhout van der Meer
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 Champions.
March 15, 2012

There is no default way of doing this, but what you can do is check with javascript if someone is logged in, and remove the Agile tab when they are not logged in:

<script type='text/javascript'>
AJS.$(document).ready(function() {
if (AJS.$("#header-details-user-fullname").length == 0) {
if (AJS.$("#greenhopper_menu").length) {
AJS.$("#greenhopper_menu").parent().hide();
}
if (AJS.$("#greenhopper_menu_no_project").length) {
AJS.$("#greenhopper_menu_no_project").parent().hide();
}
}
}); </script>

You can find steps on how to include this html here.

0 votes
Dennis Kromhout van der Meer
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 Champions.
March 26, 2012

Please mark the question answered if this helped you, which makes it easier for future users :)

Suggest an answer

Log in or Sign up to answer