import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.config.IssueTypeManager
IssueTypeManager issueTypeManager = ComponentAccessor.getComponent(IssueTypeManager)
issueTypeManager.getIssueType( getFieldById("issuetype").value.toString() ).name
Community moderators have prevented the ability to post new comments.
Thnx @Leo
Your code does the job and is shorter , so preferable :)