getScreens method

Future<PageBeanScreen> getScreens({
  1. int? startAt,
  2. int? maxResults,
  3. List<int>? id,
  4. String? queryString,
  5. List<String>? scope,
  6. String? orderBy,
})

Returns a paginated list of all screens or those specified by one or more screen IDs.

Permissions required: Administer Jira global permission.

Implementation

Future<PageBeanScreen> getScreens(
    {int? startAt,
    int? maxResults,
    List<int>? id,
    String? queryString,
    List<String>? scope,
    String? orderBy}) async {
  return PageBeanScreen.fromJson(await _client.send(
    'get',
    'rest/api/3/screens',
    queryParameters: {
      if (startAt != null) 'startAt': '$startAt',
      if (maxResults != null) 'maxResults': '$maxResults',
      if (id != null) 'id': id.map((e) => '$e').join(','),
      if (queryString != null) 'queryString': queryString,
      if (scope != null) 'scope': scope.map((e) => e).join(','),
      if (orderBy != null) 'orderBy': orderBy,
    },
  ));
}