How to hide the "info" symbol (exclamation) next to usernames in Jira 9.3 and later
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
The information on this page relates to customisations for Jira applications. Consequently, Atlassian Support cannot guarantee the provision of any support for the steps described on this page as customisations are not covered under Atlassian Support Offerings. Please be aware that this material is provided for your information only and that you use it at your own risk.
Purpose
In Jira 9.3.0, an symbol was introduced as a new user interface element next to usernames. Clicking on this symbol brings up the user's profile information. (Note that while the symbol contains the letter "i", this is sometimes mistaken for an exclamation mark)
For example:
- Issue View screen
- Issue Search screen:
As stated in JRASERVER-73347 - Getting issue details... STATUS the reason for this change was to improve accessibility; however, in some scenarios it may be preferred to hide this symbol.
Solution
The following JavaScript code can be added to the Jira announcement banner to hide the symbol:
<script>
function removeUserInfoIcon() {
for (let item of document.getElementsByClassName("aui-button aui-button-text user-hover-trigger")) {
if (item.getAttribute("aria-label") === "Show user information") {
item.style.display = 'none';
}
}
}
// Remove user icons immediately after the page's content loads.
window.addEventListener('DOMContentLoaded', removeUserInfoIcon);
// In addition to the main page content Jira also loads content via subrequests, so we need to override XMLHttpRequest to remove user icons after loading each subrequest.
var defaultXMLHttpRequest = window.XMLHttpRequest;
function modifiedXMLHttpRequest() {
var XHR = new defaultXMLHttpRequest();
XHR.addEventListener("load", removeUserInfoIcon);
return XHR;
}
window.XMLHttpRequest = modifiedXMLHttpRequest;
</script>
After the script is added to the announcement banner, the icon will no longer be displayed, as shown in the screenshot below:
Known limitations to this solution
The script is ignored in the issue search page whenever a change is made to the search query.
For example, if a field is added to the search query or if any kind of sorting is applied to it, the icon will reappear next to each user name:
When this happens, it will be necessary to refresh the page via the browser for the script to take effect again, and for the icon to disappear again: