searchSecuritySchemes method

Future<PageBeanSecuritySchemeWithProjects> searchSecuritySchemes({
  1. String? startAt,
  2. String? maxResults,
  3. List<String>? id,
  4. List<String>? projectId,
})

Returns a paginated list of issue security schemes. If you specify the project ID parameter, the result will contain issue security schemes and related project IDs you filter by. Use {@link IssueSecuritySchemeResource#searchProjectsUsingSecuritySchemes(String, String, Set, Set)} to obtain all projects related to scheme.

Only issue security schemes in the context of classic projects are returned.

Permissions required: Administer Jira global permission.

Implementation

Future<PageBeanSecuritySchemeWithProjects> searchSecuritySchemes(
    {String? startAt,
    String? maxResults,
    List<String>? id,
    List<String>? projectId}) async {
  return PageBeanSecuritySchemeWithProjects.fromJson(await _client.send(
    'get',
    'rest/api/3/issuesecurityschemes/search',
    queryParameters: {
      if (startAt != null) 'startAt': startAt,
      if (maxResults != null) 'maxResults': maxResults,
      if (id != null) 'id': id.map((e) => e).join(','),
      if (projectId != null) 'projectId': projectId.map((e) => e).join(','),
    },
  ));
}