Redirect domain to login.jsp instead of system dashboard

I don't ever want to use the system dashboard. Instead, whenever a user goes to jira.mycompany.net, I would like them to automatically redirect to the login.jsp page instead of the system dashboard. For example,

When going to jira.mycompany.net, redirect to:

jira.mycompany.net/login.jsp

instead of:

jira.mycompany.net/secure/dashboard.jspa.

I have modified the JIRA/atlassian-jira/default.jsp file to forward to /login.jsp (see code below). However, my domain URL still redirects to the system dashboard. Is this not correct?

code-example.PNG

2 answers

1 accepted

Accepted Answer
1 vote
Ann Worley Atlassian Team May 18, 2017

It looks like JIRA 7 doesn't read the default.jsp file:

Request for documentation on how to tweak JSP in JIRA 7

Please see this comment by Alexandru Luchian Constantinescu for an alternative strategy.

This worked for me. Thanks so much!

Ann Worley Atlassian Team May 18, 2017

That's great! I appreciate your following up to let the Community know it works.

Hi Tiffany,

Could you please indicate me which jsp did you remove from "JIRA_HOME/WEB-INF/web.xml" to make it work?

I'm trying to achieve the exact same thing on our Jira.

thanks!

Hi Nicolas, I actually found a better solution, one that avoided having to change any server files. Just added this to our announcement banner:

<script>
if(jQuery('#header-details-user-fullname').text().indexOf(" ") ==-1 && window.location.href.indexOf("/secure/Dashboard.jspa") != -1)
{ window.location = contextPath+"/login.jsp" }
</script>

Let me know if it works for you! 

Hi Tiffany,

It works as required. Thank you very much for this quick answer!

The announcement banner method works well.  But then what can you do when you want to use the announcement banner to warn users about upcoming maintenance.

Hi Marcus, this method still allows you to post announcements while having the code in the banner as well.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

25 views 0 2
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you