add_field: Add a custom field

Description Usage Arguments Details See Also

View source: R/custom_fields.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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()


trelloR documentation built on April 22, 2021, 1:07 a.m.