searchProjectsUsingSecuritySchemes method

Future<PageBeanIssueSecuritySchemeToProjectMapping> searchProjectsUsingSecuritySchemes({
  1. String? startAt,
  2. String? maxResults,
  3. List<String>? issueSecuritySchemeId,
  4. List<String>? projectId,
})

Returns a paginated mapping of projects that are using security schemes. You can provide either one or multiple security scheme IDs or project IDs to filter by. If you don't provide any, this will return a list of all mappings. Only issue security schemes in the context of classic projects are supported. Permissions required: Administer Jira global permission.

Implementation

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