createCustomField method

Future<FieldDetails> createCustomField({
  1. required CustomFieldDefinitionJsonBean body,
})

Creates a custom field.

Permissions required: Administer Jira global permission.

Implementation

Future<FieldDetails> createCustomField(
    {required CustomFieldDefinitionJsonBean body}) async {
  return FieldDetails.fromJson(await _client.send(
    'post',
    'rest/api/3/field',
    body: body.toJson(),
  ));
}