You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.