getEpics method

Future getEpics({
  1. required int boardId,
  2. int? startAt,
  3. int? maxResults,
  4. String? done,
})

Returns all epics from the board, for the given board ID. This only includes epics that the user has permission to view. Note, if the user does not have permission to view the board, no epics will be returned at all.

Implementation

Future<dynamic> getEpics(
    {required int boardId,
    int? startAt,
    int? maxResults,
    String? done}) async {
  return await _client.send(
    'get',
    'rest/agile/1.0/board/{boardId}/epic',
    pathParameters: {
      'boardId': '$boardId',
    },
    queryParameters: {
      if (startAt != null) 'startAt': '$startAt',
      if (maxResults != null) 'maxResults': '$maxResults',
      if (done != null) 'done': done,
    },
  );
}