Skip to contents

Create a new custom field definition and attach it to the board.

Usage

add_field(id, type, name = "New field", body = NULL, ...)

add_field_checkbox(id, name = "New checkbox", body = NULL, ...)

add_field_date(id, name = "New date", body = NULL, ...)

add_field_dropdown(id, name = "New dropdown", body = NULL, ...)

add_field_number(id, name = "New number", body = NULL, ...)

add_field_text(id, name = "New text", body = NULL, ...)

Arguments

id

Board ID

type

Custom field type

name

Custom field name

body

Named list with additional parameters

...

Additional arguments passed to create_resource()

Details

For add_field_dropdown - options can be provided using a single (optionally named) vector: body = list(options = c(red = "Alert", green = "Ok", "Nothing"))

See also

Other functions to handle custom fields: add_field_option(), delete_field_option(), delete_field(), update_card_field(), update_field()