getIssue method
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',
},
);
}