Get the Request Type Name in an Issue Event Listener or Workflow Function
Overview
This script retrieves the request type name in an event listener or workflow function.
Example
I need to do something in an "issue" event listener or workflow function, depending on the request type name. Note that there is not a one-to-one mapping between issue type name and request type name, so we need to use the following code rather than look it up from the issue type name.
Good to Know
- Associate this script with an issue listener, such as "Issue Created" or "Issue Updated".
- For a workflow function, the
issue
object is already passed in the binding, so remove the line ...