Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Syntax

...

Button handy
blanktrue
color#0052CC
nameSend Feedback
linkhttps://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=getRequestsTypes+-+15481083
widthauto

Syntax

getRequestsTypes(portalId)

Description

Excerpt

Returns an array of JRequestType containing all the Request Type data for a Portal.

Parameters

Parameter name

Type

Required

Description

portalId

Number

No

Key

The ID of the

selected issue

portal for which request types are retrieved.

Return type

JRequestType[]

The returned number represents the id of the comment. 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 dispachedget the description of the first request type for portal ID 1234.

The request types are retrieved in no specific order.

Code Block
JRequestType[] requestTypes = getRequestsTypes(1234);
JRequestType firstRequestType = requestTypes[0];

return firstRequestType.description; 

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel in ( "ps_routines" , "jsd_routine" )
labelsjira_comment_routine