getAllRequestTypes method
This method returns all customer request types used in the Jira Service Management instance, optionally filtered by a query string.
Use servicedeskapi/servicedesk/{serviceDeskId}/requesttype to find the customer request types supported by a specific service desk.
The returned list of customer request types can be filtered using the
query parameter. The parameter is matched against the customer request
types' name or description. For example, searching for "Install",
"Inst", "Equi", or "Equipment" will match a customer request type with the
name "Equipment Installation Request".
Note: This API will filter out hidden request types (aka.request types
without groups) when query is provided.
Permissions required: Any
Implementation
Future<PagedDTORequestTypeDTO> getAllRequestTypes(
{String? searchQuery,
List<int>? serviceDeskId,
int? start,
int? limit,
List<String>? expand}) async {
return PagedDTORequestTypeDTO.fromJson(await _client.send(
'get',
'rest/servicedeskapi/requesttype',
queryParameters: {
if (searchQuery != null) 'searchQuery': searchQuery,
if (serviceDeskId != null)
'serviceDeskId': serviceDeskId.map((e) => '$e').join(','),
if (start != null) 'start': '$start',
if (limit != null) 'limit': '$limit',
if (expand != null) 'expand': expand.map((e) => e).join(','),
},
));
}