define('jira/autocomplete/issue-autocomplete', ['jira/data/parse-options-from-fieldset', 'jira/field/issue-picker', 'jira/autocomplete/rest-autocomplete', 'jira/util/objects', 'wrm/context-path', 'jquery'], function (parseOptionsFromFieldset, IssuePicker, RESTAutoComplete, Objects, wrmContextPath, jQuery) { var contextPath = wrmContextPath(); /** * @constructor IssueAutoComplete * @extends RESTAutoComplete * @param options */ var IssueAutoComplete = function IssueAutoComplete(options) { /** @lends IssueAutoComplete.prototype */ var that = Objects.begetObject(RESTAutoComplete); that.getAjaxParams = function () { return { url: contextPath + "/rest/api/2/issue/picker", data: options.ajaxData, dataType: "json", type: "GET" }; }; /** * @param {Object} response */ that.renderSuggestions = function (response) { var resultsContainer; var suggestionNodes = []; // remove previous results this.clearResponseContainer(); if (response && response.sections && response.sections.length > 0) { resultsContainer = jQuery("