When wanting to perform validations on issue, but requiring different scenarios based on the request type we needed to get the determine the request type of the new issue and perform the necessary checks.
A few question out there which get the name for issues that have already been created, a new issue does not get a Key prior to being created.
Was able to get the Request Type Id from the issue, but working between DEV, TES and PROD environments it becomes difficult to manage and keep in sync.
So with some reading and testing i came up with the following method / function.