Hello,
I'm trying to get the FixVersions field to show only the Unreleased versions. I've added for it few lines of code, the list gets populated OK, but... when it's not possible anymore to select anything after the 3rd in the list, and also the filter when I'm typing something is not working. Does anyone have any ideas why this is happening?
Here is my code:
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.customfields.option.Option
import com.atlassian.jira.project.version.VersionManager
import com.atlassian.jira.project.version.Version
def versionManager = ComponentAccessor.getVersionManager()
def fixver = getFieldById("fixVersions")
Long projectId = issueContext.projectObject.id
boolean includeArchived = false
List<VersionManager> versions=versionManager.getVersionsUnreleased(projectId,includeArchived) as List
fixver.setFieldOptions(versions)