I'm new to JIRA/Script Runner
I want to display issues in a mutlipicker "ModulesPicker" using setConfigParam method by the workflow custom script post-function.
But console editor says "Cannot find matching method java.util.Collection#setConfigParam....
My code is as below.
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.issue.fields.CustomField
import com.atlassian.jira.issue.CustomFieldManager
def issueManager = ComponentAccessor.getIssueManager()
def issueFactory = ComponentAccessor.getIssueFactory()
def subtaskManager = ComponentAccessor.getSubTaskManager()
def customFieldManager = ComponentAccessor.customFieldManager
def issuePicker = customFieldManager.getCustomFieldObjectsByName("ModulesPicker")
issuePicker.setConfigParam('currentJql','project = XXX')
What's wrong? Thanks in advance.