getAvatars method
Returns the system and custom avatars for a project or issue type.
This operation can be accessed anonymously.
Permissions required:
- for custom project avatars, Browse projects project permission for the project the avatar belongs to.
- for custom issue type avatars, Browse projects project permission for at least one project the issue type is used in.
- for system avatars, none.
Implementation
Future<Avatars> getAvatars(
{required String type, required String entityId}) async {
return Avatars.fromJson(await _client.send(
'get',
'rest/api/3/universal_avatar/type/{type}/owner/{entityId}',
pathParameters: {
'type': type,
'entityId': entityId,
},
));
}