getPropertiesKeys method

Future<PropertyKeys> getPropertiesKeys({
  1. required int requestTypeId,
  2. required String serviceDeskId,
})

Returns the keys of all properties for a request type.

Properties for a Request Type in next-gen are stored as Issue Type properties and therefore the keys of all properties for a request type are also available by calling the Jira Cloud Platform Get issue type property keys endpoint.

Permissions required: The user must have permission to view the request type.

Implementation

Future<PropertyKeys> getPropertiesKeys(
    {required int requestTypeId, required String serviceDeskId}) async {
  return PropertyKeys.fromJson(await _client.send(
    'get',
    'rest/servicedeskapi/servicedesk/{serviceDeskId}/requesttype/{requestTypeId}/property',
    pathParameters: {
      'requestTypeId': '$requestTypeId',
      'serviceDeskId': serviceDeskId,
    },
  ));
}