Skip to end of banner
Go to start of banner

getRequestTypes

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Syntax

getRequestTypes(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[]

The returned number represents the id of the comment. 

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 = getRequestTypes(1234);
JRequestType firstRequestType = requestTypes[0];

return firstRequestType.description; 

See also

  • No labels