getContextsForFieldDeprecated method

  1. @deprecated
Future<PageBeanContext> getContextsForFieldDeprecated({
  1. required String fieldId,
  2. int? startAt,
  3. int? maxResults,
})

Returns a paginated list of the contexts a field is used in. Deprecated, use Get custom field contexts.

Permissions required: Administer Jira global permission.

Implementation

@deprecated
Future<PageBeanContext> getContextsForFieldDeprecated(
    {required String fieldId, int? startAt, int? maxResults}) async {
  return PageBeanContext.fromJson(await _client.send(
    'get',
    'rest/api/3/field/{fieldId}/contexts',
    pathParameters: {
      'fieldId': fieldId,
    },
    queryParameters: {
      if (startAt != null) 'startAt': '$startAt',
      if (maxResults != null) 'maxResults': '$maxResults',
    },
  ));
}