Syntax
getRequestsTypes(portalId)
Description
Returns an array of JRequestType containing all the Request Type data for a Portal.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
portalId | Number | No | Key of the selected issue |
Return type
JRequestType[]
Returns an array of JRequestType containing information about the request types.
Examples
Example 1
Use the following code to add a public comment to the current issue on behalf of the current user. The commentAdded event will be dispached.
JRequestType[] requestTypes = getRequestsTypes(1234); JRequestType firstRequestType = requestTypes[0]; return firstRequestType.description;