Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ScriptRunner Behaviour - update IssuePicker based on custom field value

Greg Fischer
Contributor
March 27, 2019

Hi all,

 

I have created a ScriptRunner IssuePicker field, and provided an initial JQL query to populate the listbox values.  I want to modify the listbox values based on another field on the form (a Project pick list).  So I have written a Behaviour to update the JQL query on the IssuePicker (named requestingEpic here):

def projectKey = projectValue.substring(9)
def query = "project = " + projectKey + " and issuetype = Epic and status != Done"
log.warn("new query is " + query)
requestingEpic.setConfigParam('currentJql', query)

 

What call do I now have to make to have that listbox run the new query I just gave it and update the listbox contents? 

 

Thanks,

-Greg

 

1 answer

1 accepted

0 votes
Answer accepted
Greg Fischer
Contributor
March 28, 2019

Suggest an answer

Log in or Sign up to answer