How to hide the Login Gadget from the System Dashboard in Jira
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
This document includes customizations to Jira and direct database manipulation, which are not supported. Consequently, Atlassian Support cannot guarantee providing any support for it. Please be aware that this material is provided for your information only and using it is done so at your own risk.
Purpose
For some configurations of Jira, the pre-logon System Dashboard is used as an Information Radiator to show gadget information without requiring a login. In this use case, the login gadget steals precious real estate and also throws off the whole look.
Solution
The steps below will allow you to disable this system gadget entirely. If you do this, users would then only be able to login to the site via the /login.jsp page, which they can also reach by clicking the Log In button in the top right corner of that page.
This procedure makes changes to mission-critical components of your JIRA. Be careful to make a backup copy prior to modifying any file.
If this solution does not work, please review the following article: Jira Login Gadget not hiding from Dashboard
Preparing the jpm.xml
- Navigate to
<jira-install>/atlassian-jira/WEB-INF/classes/
- Make a backup copy of
jpm.xml
namedjpm.bak
- Edit the
jpm.xml
fileFind the following stanza:
<property> <key>jira.disable.login.gadget</key> <default-value>false</default-value> <type>boolean</type> <admin-editable>false</admin-editable> <sysadmin-editable>false</sysadmin-editable> </property>
- Change the value of <default-value>false</default-value> to <default-value>true</default-value>
- Change the value of <admin-editable>false</admin-editable> to <admin-editable>true</admin-editable>
- Change the value of <sysadmin-editable>false</sysadmin-editable> to <sysadmin-editable>true</sysadmin-editable>
- Save the file
Creating or Editing jira-config.properties
- Navigate to <jira-home>
- Check for the presence of a
jira-config.properties
file (see also Advanced Jira application configuration)- If it exists, back it up now.
- If not, create a new, blank text file with that name.
Add this line to the end of the file:
jira.disable.login.gadget=true
- Save the file;
- Restart Jira to commit changes.
Alternate Solution (Database)
It is also possible to hide the login gadget by setting the jira.disable.login.gadget property in the database, using the following steps. (Note that this method takes precedence over the jpm.xml / jira-config.properties method above, if both are applied together.)
- Take a backup of your Jira instance.
- Stop Jira.
Run the following SQL query on the Jira database:
SELECT COUNT(*) FROM propertyentry WHERE property_key = 'jira.disable.login.gadget';
If the result of the query in step 3 was 0, run the following SQL queries:
INSERT INTO propertynumber VALUES ((SELECT max(id)+1 FROM propertyentry), '1'); INSERT INTO propertyentry VALUES ( (SELECT max(id)+1 FROM propertyentry), 'jira.properties', 1, 'jira.disable.login.gadget', 1 );
If the result of the query in step 3 was 1, run the following SQL query:
UPDATE propertynumber SET propertyvalue=1 WHERE id=(SELECT id FROM propertyentry WHERE property_key='jira.disable.login.gadget');
- Start Jira.