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

1 answer

1 accepted

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!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

551 views 6 12
Read article

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