Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

getCustomerRequests([searchTerm[, requestOwnership[, requestStatus[, approvalStatus[, organizationId[, serviceDeskId, requestTypeId]]]]]])

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Returns a string array of customer requests keys.

Returns a string array of customer requests keys that match the provided parameters. More information about the parameters can be found on Atlassian's rest API: https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-request/#api-rest-servicedeskapi-request-get

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

searchTerm

String

No

Filters customer requests where the request summary matches the searchTerm

requestOwnership

String[]

No

Can be "OWNED_REQUESTS", "PARTICIPATED_REQUESTS", "ORGANIZATION", "ALL_ORGANIZATIONS", "APPROVER"

requestStatus

String

No

Can be "CLOSED_REQUESTS", "OPEN_REQUESTS", "ALL_REQUESTS"

approvalStatus

String

No

Can be "MY_PENDING_APPROVAL", "MY_HISTORY_APPROVAL"

organizationId

Integer

No

Valid only when used with requestOwnership is "ORGANIZATION".

serviceDeskId

Integer

No

Filters customer requests by service desk.

requestTypeId

Integer

No

Filters customer requests by request type. Note that the serviceDeskId must be specified for the service desk in which the request type belongs.

Return Type

String []

Example

Code Block
languagejs
return getCustomerRequests();

Returns a list of keys of all the customer requests.

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "jsd_routine" and space = currentSpace ( )
labelsarray_routines

We've encountered an issue exporting this macro. Please try exporting this page again later.