getChangeLogs method

Future<PageBeanChangelog> getChangeLogs({
  1. required String issueIdOrKey,
  2. int? startAt,
  3. int? maxResults,
})

Returns a paginated list of all changelogs for an issue sorted by date, starting from the oldest.

This operation can be accessed anonymously.

Permissions required:

Implementation

Future<PageBeanChangelog> getChangeLogs(
    {required String issueIdOrKey, int? startAt, int? maxResults}) async {
  return PageBeanChangelog.fromJson(await _client.send(
    'get',
    'rest/api/3/issue/{issueIdOrKey}/changelog',
    pathParameters: {
      'issueIdOrKey': issueIdOrKey,
    },
    queryParameters: {
      if (startAt != null) 'startAt': '$startAt',
      if (maxResults != null) 'maxResults': '$maxResults',
    },
  ));
}