Page tree
Skip to end of metadata
Go to start of metadata
import com.atlassian.jira.component.ComponentAccessor;
import static com.atlassian.jira.issue.IssueFieldConstants.ISSUE_TYPE;


def constantsManager = ComponentAccessor.getConstantsManager()
def queryIssueType = constantsManager.getAllIssueTypeObjects().find { it.name == "Epic" }
getFieldById(ISSUE_TYPE).with {
	setFormValue(queryIssueType.id)
}
  • No labels