getIssuesForSprint method

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

Returns all issues in a sprint, for a given sprint ID. This only includes issues that the user has permission to view. By default, the returned issues are ordered by rank.

Implementation

Future<dynamic> getIssuesForSprint(
    {required int sprintId,
    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/sprint/{sprintId}/issue',
    pathParameters: {
      'sprintId': '$sprintId',
    },
    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,
    },
  );
}