getCustomerRequests

getCustomerRequests

 

Syntax

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

Package

 

Alias

 

Pkg Usage

 

Description

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

Parameter name

Type

Required

Description

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

return getCustomerRequests();

Returns a list of keys of all the customer requests.

See also

Need support? Create a request with our support team.

Copyright © 2005 - 2026 Appfire | All rights reserved.