Currently in the SR4J Dynamic forms there is no option to create a Select List of the Issue Statuses.
We are trying to create a Select List (https://scriptrunner.adaptavist.com/latest/jira/dynamic-forms.html#_select_list) but instead of hard coding the options we want to add values that are retrieved using the following code:
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.config.StatusManager
StatusManager statusManager = ComponentAccessor.getComponentOfType(StatusManager.class)
return statusManager.getStatuses()*.getName()
is this possible? If yes, how can this be implemented.