getScreensForField method

Future<PageBeanScreenWithTab> getScreensForField({
  1. required String fieldId,
  2. int? startAt,
  3. int? maxResults,
  4. String? expand,
})

Returns a paginated list of the screens a field is used in.

Permissions required: Administer Jira global permission.

Implementation

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