assignProjectsToCustomFieldContext method
Future
assignProjectsToCustomFieldContext({
- required String fieldId,
- required int contextId,
- required ProjectIds body,
Assigns a custom field context to projects.
If any project in the request is assigned to any context of the custom field, the operation fails.
Permissions required: Administer Jira global permission.
Implementation
Future<dynamic> assignProjectsToCustomFieldContext(
{required String fieldId,
required int contextId,
required ProjectIds body}) async {
return await _client.send(
'put',
'rest/api/3/field/{fieldId}/context/{contextId}/project',
pathParameters: {
'fieldId': fieldId,
'contextId': '$contextId',
},
body: body.toJson(),
);
}