getBoardIssuesForEpic method

Future getBoardIssuesForEpic({
  1. required int boardId,
  2. required int epicId,
  3. int? startAt,
  4. int? maxResults,
  5. String? jql,
  6. bool? validateQuery,
  7. List<Map<String, dynamic>>? fields,
  8. String? expand,
})

Returns all issues that belong to an epic on the board, for the given epic ID and the board ID. This only includes issues that the user has permission to view. Issues returned from this resource include Agile fields, like sprint, closedSprints, flagged, and epic. By default, the returned issues are ordered by rank.

Implementation

Future<dynamic> getBoardIssuesForEpic(
    {required int boardId,
    required int epicId,
    int? startAt,
    int? maxResults,
    String? jql,
    bool? validateQuery,
    List<Map<String, dynamic>>? fields,
    String? expand}) async {
  return await _client.send(
    'get',
    'rest/agile/1.0/board/{boardId}/epic/{epicId}/issue',
    pathParameters: {
      'boardId': '$boardId',
      'epicId': '$epicId',
    },
    queryParameters: {
      if (startAt != null) 'startAt': '$startAt',
      if (maxResults != null) 'maxResults': '$maxResults',
      if (jql != null) 'jql': jql,
      if (validateQuery != null) 'validateQuery': '$validateQuery',
      if (fields != null) 'fields': fields.map((e) => '$e').join(','),
      if (expand != null) 'expand': expand,
    },
  );
}