createCustomFieldContext method

Future<CreateCustomFieldContext> createCustomFieldContext({
  1. required String fieldId,
  2. required CreateCustomFieldContext body,
})

Creates a custom field context.

If projectIds is empty, a global context is created. A global context is one that applies to all project. If issueTypeIds is empty, the context applies to all issue types.

Permissions required: Administer Jira global permission.

Implementation

Future<CreateCustomFieldContext> createCustomFieldContext(
    {required String fieldId, required CreateCustomFieldContext body}) async {
  return CreateCustomFieldContext.fromJson(await _client.send(
    'post',
    'rest/api/3/field/{fieldId}/context',
    pathParameters: {
      'fieldId': fieldId,
    },
    body: body.toJson(),
  ));
}