Professional Documents
Culture Documents
Variables
*******************************************************
Time related
*******************************************************
{date} e.g. October 3, 2016
{monthdaynumber} e.g. 3
{monthdaynumberlong} e.g. 03
{yeardaynumber} e.g. 277
{yeardaynumberlong} e.g. 277
{weekdaynumber} e.g. 1
{weekdayname} e.g. Monday
{weekdayshort} e.g. Mon
{dateshort} e.g. Oct 3, 2016
{datelong} e.g. October 3, 2016
{datenumber} e.g. 10/3/2016
{isodate} e.g. 2016-10-03
You can prepend tomorrow and yesterday to the above, e.g.
{tomorrowmonthdaynumber}, {yesterdayisodate}.
{monthnumber} e.g. 10
{monthnumberlong} e.g. 10
{monthname} e.g. October
{monthshort} e.g. Oct
{quarternumber} e.g. 4
{year} e.g. 2016
{yearshort} e.g. 16
You can prepend last and next to the above, e.g. {nextmonthnumber},
Página 1
Butler Variables
{nextquarternumber}, {lastyearshort}.
*******************************************************
Board data
*******************************************************
{boardid} the id of the board
{boardname} the name of the board
{boardlink} the link to the board
After a create board command, the above with the new prefix (e.g.
{newboardlink}) refer to the new board.
After a copy board command, the above with the copy prefix (e.g.
{copyboardlink}) refer to the new copy of the board.
{cardboardname} (only after finding card with id) the name of the board
where the card was found
*******************************************************
Card data
*******************************************************
{cardname} the card's name
{carddescription} the card's description (not always available)
{cardlink} a link to the current card
{cardlistname} the name of the list where the card is (not always
available)
{cardid} the internal id of the card, e.g. FY2OWrnc. This is always
constant.
{cardnumber} the internal number of the card on the board, e.g. 48. This
changes when a card is moved to another board (not always available)
{labelnames} the names of all the named labels in the card, comma separated
{cardduecomplete} "true" if the due date has been marked as complete,
"false" otherwise.
{cardcheckliststate} a formatted text with the state of all the checklists
in the card, useful to add a comment with a snapshot of the state of a
card's checklists.
{cardchecklistcount} the number of checklists on the card.
Página 2
Butler Variables
{cardcompletechecklistcount} the number of complete checklists on the card.
{cardincompletechecklistcount} the number of incomplete checklists on the
card.
{cardduedate} the due date of the card (not always available). Also,
{cardduedateweekdayname}, etc...
{cardcreationdate} the date the card was created.
{cardagedays} the age of a card in days, with two decimals (e.g. 1d 6h =>
1.25).
{cardagehours} the age of a card in hours, with two decimals (e.g. 1h 40m
=> 1.67).
{cardageminutes} the age of a card in minutes, with two decimals (e.g. 1h
40m 30s => 100.5).
Note: For the last three (age), adding round at the end (e.g.
{cardagedaysround}, rounds the number to the nearest integer.
When the trigger involves a card, the variables above preceded by trigger
({triggercardname}, {triggercardlink}, etc) refer to the trigger card (not
all variables may be available).
After the multiplier for each card, the variables above preceded by
multiplier ({multipliercardname}, {multipliercardlink}, etc) refer to the
current card (not all variables may be available).
When the trigger contains a condition, e.g. when a card with a due date...
, the variables above preceded by condition ({conditioncardduedate}, etc)
refer to the card involved in the condition (typically the trigger card).
{cardcountresult}
Variables available for commands with certain triggers, such as when a list
is created:
{matchedtext} the text that matched the condition, typically used with a
condition including a {*} wildcard.
{textbeforematch} the text before the matched text.
{textaftermatch} the text after the matched text.
Variables available only in commands with triggers such as when a card
contains a date:
print variables
You can also use it with a trigger to see what's available when you trigger
it, e.g.:
Página 6
Butler Variables
(You then need to add a label to a card to see the value of the variables.)
If you need a variable and it's not here, let us know and we'll do our best
to make it available.
Página 7