import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.config.IssueTypeManager
IssueTypeManager issueTypeManager = ComponentAccessor.getComponent(IssueTypeManager)
issueTypeManager.getIssueType( getFieldById("issuetype").value.toString() ).name