getIssue method

Future getIssue({
  1. required String issueIdOrKey,
  2. List<Map<String, dynamic>>? fields,
  3. String? expand,
  4. bool? updateHistory,
})

Returns a single issue, for a given issue ID or issue key. Issues returned from this resource include Agile fields, like sprint, closedSprints, flagged, and epic.

Implementation

Future<dynamic> getIssue(
    {required String issueIdOrKey,
    List<Map<String, dynamic>>? fields,
    String? expand,
    bool? updateHistory}) async {
  return await _client.send(
    'get',
    'rest/agile/1.0/issue/{issueIdOrKey}',
    pathParameters: {
      'issueIdOrKey': issueIdOrKey,
    },
    queryParameters: {
      if (fields != null) 'fields': fields.map((e) => '$e').join(','),
      if (expand != null) 'expand': expand,
      if (updateHistory != null) 'updateHistory': '$updateHistory',
    },
  );
}