Advanced Search for issues Autocomplete doesn't submit suggestion by a click with latest Chrome

Still need help?

The Atlassian Community is here for you.

Ask the community

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

    1. Click on "Search for issues"
    2. Type something that triggers the autocomplete. (For Example: Status = )
    3. Attempt to select one of the options using a mouse-click from the drop down displayed
    4. 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-62951 - Getting 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

  1. Download AutoComplete.js

  2. Shutdown JIRA
  3. Rename existing $JIRA_INSTALL/atlassian-jira/includes/jira/autocomplete/AutoComplete.js to AutoComplete.js.rename
  4. Copy the new AutoComplete.js to $JIRA_INSTALL/atlassian-jira/includes/jira/autocomplete/
  5. 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);
  6. Start JIRA
  7. 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:

  1. Download JQLAutoComplete.js
  2. Shutdown JIRA
  3. Rename existing $JIRA_INSTALL/atlassian-jira/includes/jira/autocomplete/JQLAutoComplete.js to JQLAutoComplete.js.rename
    • Do the same for the minified version, rename JQLAutoComplete-min.js to JQLAutoComplete-min.js.rename
  4. Create a copy of the downloaded JQLAutoComplete.js and renamed the copy to JQLAutoComplete-min.js
  5. Copy the new JQLAutoComplete-min.js and JQLAutoComplete.js to $JIRA_INSTALL/atlassian-jira/includes/jira/autocomplete/
  6. Restart JIRA

Resolution

Upgrade to JIRA 7.2.6 which has the problem fixed.

 

Last modified on Jan 9, 2017

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.