Hi Team,
We want to add a custom message in the JIRA login page for user to redirect to some other link where user can reactivate his account. Basically we want if user gets a message "Usrername/Password is incorrect. Please contact your JIRA administrator.". So we want to display a custom message "If your account is deactivated/inactive, kindly visit the URL and regain your access"
Note: We are using Script Runner in our instance, if it is possible through script runner.
Let me know if this is possible and how (step by step doc will be appreciated).
We've switched to SSO and wanted to add a message to the login screen telling them to contact an Admin if they see that screen. I am the JIRA administrator but don't have access to the JIRA server to edit pages so I had to figure out a way to do it through scriptrunner.
I added a web panel but the problem was that the many of the webpanel locations are not displayed on the login page so I had to add a banner a the top of the page but only display it for the login screen. So if you are in the same boat, here's how to do it for Jira v7.
import com.atlassian.jira.plugin.webfragment.model.JiraHelper
JiraHelper jirahelper = new JiraHelper();
def url = jiraHelper.getRequest().getRequestURL().toString();
if (url.contains('login')) {
return 1
} else {
return 0
}
writer.write("<div style='background-color: yellow; text-align: center'>" +
"If you are trying to access this page please contact your systems administrator. </div>")
Hope that helps!
Kira
It works !!! :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome). Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manu,
You can add a custom message under Contact Administrators Message
Administration > System > General Configuration
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Edwin Kyalangalilwa This is a by default custom message, this will be always displayed. We have a following senarios:
1. If user loggs in with correct username & password and account is inactive state (under user management). --- The custom message should display with hyperlink to activate/regain the account/access.
2. If user loggs in wrong username & password.---- The default message should display (your username/password is incorrect. Please contact you Jira Administrator).
Is it possible to achieve point #1 through script runner. Because what I believe when user loggs in the "user" name should be validated from user management (if account is in-active state). Let me know if I am correct.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.