How do I get the Service ManagementRequest Typename in behaviours?
From ScriptRunner 6.1.0, you can call thegetRequestTypeNamemethod within your behaviour scripts to get the name of the current Service ManagementRequest Typethat the user is interacting with.
How do I get the value of the current issue’s custom fields with behaviours when on the edit screen?
Use theunderlyingIssuevariable in a behaviours script to find the value of current issue’s fields. This variable is available in any behaviour script, however, it will be null on theCreatescreen because the issue does not exist at that point.
When using theunderlyingIssueto retrieve the values of the current issue’s fields those values are obtained from the issue and not the values within the current form.