I have updated my jira to 8 and also script runner version. Our workflow conditions are stopped working
import com.atlassian.jira.issue.CustomFieldManager
import com.atlassian.jira.component.ComponentAccessor;
import org.apache.log4j.Category;
import com.atlassian.jira.workflow.JiraWorkflow
JiraWorkflow workflow = ComponentAccessor.getWorkflowManager().getWorkflow(issue);
def wfd = workflow.getDescriptor()
def actionName = wfd?.getAction((int)transientVars["actionId"])?.getName();
def customFieldManager = ComponentAccessor.getCustomFieldManager();
def cfStatusDdetails = customFieldManager.getCustomFieldObjectByName("Status details")
issue.setCustomFieldValue(cfStatusDdetails,actionName)
Error - .getCustomFieldObjectByName("Status details")- Method doesn't exist. Replaced with suggestion method by getCustomFieldObjectsByName
Once i updated suggested method. It is failed in this line.
issue.setCustomFieldValue(cfStatusDdetails,actionName)
Error i am getting attached in screen shot