Jira Login Gadget not hiding from Dashboard
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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
Summary
When you are trying to apply the following kb in your system: How to hide the Login Gadget from the System dashboard, but it doesn't work.
This could potentially be a result of this property "jira.disable.login.gadget" being setup within the database.
Diagnosis
To verify if the property is configured in the Jira database, please execute the following query:
1
2
3
4
=== Query to evaluate if the property has been set up in database
Select * From propertyentry where property_key='jira.disable.login.gadget'
=== Query to evaluate the value of this property
Select * From propertynumber p where id=<PREVIOUS ID>
Cause
The values stored in the database are superseding the settings of the jira-config.properties file and the jpm.xml file.
Solution
There are 2 solutions:
Always
back up
your data before performing any modifications to the database. If possible, test any alter, insert, update, or delete SQL commands on a staging server first.
Remove the property from the database and update the file jira-config.properties
Find the property on the database with the previous queries
Stop Jira
Delete such property from the database:
With the next queries:
1 2 3 4 5
# To delete the property entry Delete from propertynumber where id=(select id from propertyentry where property_key='jira.disable.login.gadget'); # to delete the value entry Delete from propertyentry where property_key='jira.disable.login.gadget';
Set the 'jira-config.properties' file as mentioned in the KB How to hide the Login Gadget from the System dashboard
Start Jira
Update the value of the property in the database: (⚠️ This will overwrite any change on the jira-config.properties, regarding the same property)
Stop Jira
Update the key value in the db. The changes in the file won't be taken into consideration, as the DB will have higher priority here.
1
update propertynumber set propertyvalue=1 where id=(select id from propertyentry where property_key='jira.disable.login.gadget')
Restart Jira
Was this helpful?