getIssueTypeMappingsForContexts method
Returns a paginated list of context to issue type mappings for a custom field. Mappings are returned for all contexts or a list of contexts. Mappings are ordered first by context ID and then by issue type ID.
Permissions required: Administer Jira global permission.
Implementation
Future<PageBeanIssueTypeToContextMapping> getIssueTypeMappingsForContexts(
{required String fieldId,
List<int>? contextId,
int? startAt,
int? maxResults}) async {
return PageBeanIssueTypeToContextMapping.fromJson(await _client.send(
'get',
'rest/api/3/field/{fieldId}/context/issuetypemapping',
pathParameters: {
'fieldId': fieldId,
},
queryParameters: {
if (contextId != null)
'contextId': contextId.map((e) => '$e').join(','),
if (startAt != null) 'startAt': '$startAt',
if (maxResults != null) 'maxResults': '$maxResults',
},
));
}