getApplicationProperty method

Future<List<ApplicationProperty>> getApplicationProperty({
  1. String? key,
  2. String? permissionLevel,
  3. String? keyFilter,
})

Returns all application properties or an application property.

If you specify a value for the key parameter, then an application property is returned as an object (not in an array). Otherwise, an array of all editable application properties is returned. See Set application property for descriptions of editable properties.

Permissions required: Administer Jira global permission.

Implementation

Future<List<ApplicationProperty>> getApplicationProperty(
    {String? key, String? permissionLevel, String? keyFilter}) async {
  return (await _client.send(
    'get',
    'rest/api/3/application-properties',
    queryParameters: {
      if (key != null) 'key': key,
      if (permissionLevel != null) 'permissionLevel': permissionLevel,
      if (keyFilter != null) 'keyFilter': keyFilter,
    },
  ) as List<Object?>)
      .map((i) => ApplicationProperty.fromJson(
          i as Map<String, Object?>? ?? const {}))
      .toList();
}