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:
def selectedProject = getFieldById(getFieldChanged()).value as Project
def jqlSearchField = getFieldByName("TextFieldA")
if (selectedProject) {
jqlSearchField.setReadOnly(false).setDescription("Select an issue in the ${selectedProject.name} project")
jqlSearchField.convertToSingleSelect([
ajaxOptions: [
url : getBaseUrl() + "/rest/scriptrunner-jira/latest/issue/picker",
query : true,
data : [
currentJql : "project = ${selectedProject.key} ORDER BY key ASC",
label : "Pick high priority issue in ${selectedProject.name} project",
max : 30,
],
formatResponse: "issue"
],
css : "max-width: 500px; width: 500px",
])
}
else {
// selected project was null - disable control
jqlSearchField.convertToShortText()
jqlSearchField.setReadOnly(true).setDescription("Please select a project before entering the issue")
}
Anyone can help out? :)
Hi,
There is an existing bug report for this here: https://productsupport.adaptavist.com/browse/SRJIRA-3617
Regards,
Katy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Report back since 5.6.6.1-jira8 of Scriptrunner is now out.
Using max on the ajaxOptions now works as expected.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.