getProjectComponents method
Returns all components in a project. See the Get project components paginated resource if you want to get a full list of components with pagination.
This operation can be accessed anonymously.
Permissions required: Browse Projects project permission for the project.
Implementation
Future<List<ProjectComponent>> getProjectComponents(
String projectIdOrKey) async {
return (await _client.send(
'get',
'rest/api/3/project/{projectIdOrKey}/components',
pathParameters: {
'projectIdOrKey': projectIdOrKey,
},
) as List<Object?>)
.map((i) =>
ProjectComponent.fromJson(i as Map<String, Object?>? ?? const {}))
.toList();
}