getProperty method

Future<EntityProperty> getProperty({
  1. required String serviceDeskId,
  2. required int requestTypeId,
  3. required String propertyKey,
})

Returns the value of the property from a request type.

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

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

Implementation

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