getEvents method

Future<List<IssueEvent>> getEvents()

Returns all issue events.

Permissions required: Administer Jira global permission.

Implementation

Future<List<IssueEvent>> getEvents() async {
  return (await _client.send(
    'get',
    'rest/api/3/events',
  ) as List<Object?>)
      .map((i) => IssueEvent.fromJson(i as Map<String, Object?>? ?? const {}))
      .toList();
}