getFieldConfigurationSchemeProjectMapping method

Future<PageBeanFieldConfigurationSchemeProjects> getFieldConfigurationSchemeProjectMapping({
  1. int? startAt,
  2. int? maxResults,
  3. required List<int> projectId,
})

Returns a paginated list of field configuration schemes and, for each scheme, a list of the projects that use it.

The list is sorted by field configuration scheme ID. The first item contains the list of project IDs assigned to the default field configuration scheme.

Only field configuration schemes used in classic projects are returned.

Permissions required: Administer Jira global permission.

Implementation

Future<PageBeanFieldConfigurationSchemeProjects>
    getFieldConfigurationSchemeProjectMapping(
        {int? startAt, int? maxResults, required List<int> projectId}) async {
  return PageBeanFieldConfigurationSchemeProjects.fromJson(await _client.send(
    'get',
    'rest/api/3/fieldconfigurationscheme/project',
    queryParameters: {
      if (startAt != null) 'startAt': '$startAt',
      if (maxResults != null) 'maxResults': '$maxResults',
      'projectId': projectId.map((e) => '$e').join(','),
    },
  ));
}