Hi, community!
I try set option in field wish scriptrunner in Post-function.
I wrote the code, but it doesn't update anything, it just clears the field from the value FOR SOMEHOW.. Please tell me what I'm doing wrong?
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.user.ApplicationUser
import com.atlassian.jira.event.type.EventDispatchOption
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def issueManager = ComponentAccessor.getIssueManager();
def changeCf = customFieldManager.getCustomFieldObjectByName("name cf")//cf id 24510
issue.setCustomFieldValue(changeCf, "name value option") //option value
Â
