Hi,
Using the out of the box example from Dynamically Changing the Picker Query, I would like to get all results from the jql listed in the select list, not just the first 10 (which seems to be the default).
I have tried to add:
max : 30,
to the ajaxOptions but It still results in only the first 10.
Using the code from the page above page:
<span>def</span> selectedProject = getFieldById(getFieldChanged()).value <span>as</span> Project
<span>def</span> jqlSearchField = getFieldByName(<span>"TextFieldA"</span>)
<span>if</span> (selectedProject) {
jqlSearchField.setReadOnly(<span>false</span>).setDescription(<span>"Select an issue in the ${selectedProject.name} project"</span>)
jqlSearchField.convertToSingleSelect([
<span> ajaxOptions:</span> [
<span>url :</span> getBaseUrl() + <span>"/rest/scriptrunner-jira/latest/issue/picker"</span>,
<span>query :</span> <span>true</span>,
<span>data :</span> [
<span>currentJql :</span> <span>"project = ${selectedProject.key} ORDER BY key ASC"</span>,
<span>label :</span> <span>"Pick high priority issue in ${selectedProject.name} project"</span>,
max : 30,<br>],
<span> formatResponse:</span> <span>"issue"</span>
],
<span>css :</span> <span>"max-width: 500px; width: 500px"</span>,
])
}
<span>else</span> {
<span>// selected project was null - disable control</span>
jqlSearchField.convertToShortText()
jqlSearchField.setReadOnly(<span>true</span>).setDescription(<span>"Please select a project before entering the issue"</span>)
} Anyone can help out? 