Advanced Search for issues Autocomplete doesn't submit suggestion by a click with latest Chrome
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 content on this page includes steps to customize or extend Atlassian software (adding/changing CSS rules, HTML, JavaScript, etc.). Per the Atlassian Support Offerings, support does not include customizations made to Atlassian products. Be aware that this material is provided for your information only and using it is done so at your risk.
If you have any questions about this or any customization, please ask the community at Atlassian Answers or consider working with an Atlassian Solution Partner.
Problem
When trying to perform Advanced search
- Click on "Search for issues"
- Type something that triggers the autocomplete. (For Example: Status = )
- Attempt to select one of the options using a mouse-click from the drop down displayed
- It doesn't paste the value to JQL
Diagnosis
Using JIRA 7.1.4 to JIRA 7.2.5 versions.
When searching for issues in the JQL Advanced Mode, the Autocomplete options are not clickable by mouse. This is reproducible on:
- Chrome for Mac Version 54.0.2840.59 (64-bit)
- Chrome for Mac version 54.02840.71
- Version 54.0.2840.71 m
- Version 54.0.2840.99 m
- Chrome for Windows: 54.0.2840.87 m 64-bit
Cause
Potentially due to the change that was made in Chrome to remove certain command - https://www.chromestatus.com/feature/5718803933560832 . There is a bug on this at - JRA-62951Getting issue details... STATUS
Workaround
The patch may not be working on certain combination of browser + OS. (eg. Linux + Chrome)
There is a patch released on AutoComplete.js that can be replaced for the affected versions. This has been tested to work on JIRA 7.2.2
Download AutoComplete.js
- Shutdown JIRA
- Rename existing
$JIRA_INSTALL/atlassian-jira/includes/jira/autocomplete/AutoComplete.js
toAutoComplete.js.rename
- Copy the new AutoComplete.js to
$JIRA_INSTALL/atlassian-jira/includes/jira/autocomplete/
Checking for diff should return similar
user-mbp:autocomplete user$ diff AutoComplete.js AutoComplete.js.rename 318,321c318 < .bind("click", eventData, complete) < .bind("mousedown", function(e) { < e.preventDefault(); < }); --- > .bind("click", eventData, complete);
- Start JIRA
- Try to see if you can reproduced the problem
If the issue does persists after performing the above, then you may need to perform the additional few steps:
- Download JQLAutoComplete.js
- Shutdown JIRA
- Rename existing
$JIRA_INSTALL/atlassian-jira/includes/jira/autocomplete/JQLAutoComplete.js
toJQLAutoComplete.js.rename
- Do the same for the minified version, rename
JQLAutoComplete-min.js
toJQLAutoComplete-min.js.rename
- Do the same for the minified version, rename
- Create a copy of the downloaded
JQLAutoComplete.js
and renamed the copy toJQLAutoComplete-min.js
- Copy the new JQLAutoComplete-min.js and JQLAutoComplete.js to
$JIRA_INSTALL/atlassian-jira/includes/jira/autocomplete/
- Restart JIRA
Resolution
Upgrade to JIRA 7.2.6 which has the problem fixed.