removeCustomFieldContextFromProjects method

Future removeCustomFieldContextFromProjects({
  1. required String fieldId,
  2. required int contextId,
  3. required ProjectIds body,
})

Removes a custom field context from projects.

A custom field context without any projects applies to all projects. Removing all projects from a custom field context would result in it applying to all projects.

If any project in the request is not assigned to the context, or the operation would result in two global contexts for the field, the operation fails.

Permissions required: Administer Jira global permission.

Implementation

Future<dynamic> removeCustomFieldContextFromProjects(
    {required String fieldId,
    required int contextId,
    required ProjectIds body}) async {
  return await _client.send(
    'post',
    'rest/api/3/field/{fieldId}/context/{contextId}/project/remove',
    pathParameters: {
      'fieldId': fieldId,
      'contextId': '$contextId',
    },
    body: body.toJson(),
  );
}