-
-
Notifications
You must be signed in to change notification settings - Fork 5
AddChecklistToCardIfLabelMatchAction
Rasmus Wulff Jensen edited this page Nov 1, 2023
·
4 revisions
Back to Automation Action List
This Automation Action adds Checklists to cards if it is not already present based on what Labels are present on the card.
| Option | Description |
|---|---|
AddChecklistActionsIfLabelsMatch (Required) |
A set of labels and checklist Actions to apply if one or more of the labels are on the card |
Automation automation = new Automation("Add DoD to Card when moved to the 'In Progress' column.",
new CardMovedToListTrigger(CardMovedToListTriggerConstraint.AnyOfTheseListsAreMovedTo, "In Progress") { TreatListNameAsId = true },
null, // No conditions necessary
new List<IAutomationAction>
{
new AddChecklistToCardIfLabelMatchAction(
new AddChecklistToCardIfLabelMatch("Frontend", new AddChecklistToCardAction(
new Checklist("Frontend DoD", new List<ChecklistItem>
{
new ChecklistItem("Frontend item 1"),
new ChecklistItem("Frontend item 2"),
new ChecklistItem("Frontend item 3"),
}))) {TreatLabelNameAsId = true},
new AddChecklistToCardIfLabelMatch("Backend", new AddChecklistToCardAction(
new Checklist("Backend DoD", new List<ChecklistItem>
{
new ChecklistItem("Backend item 1"),
new ChecklistItem("Backend item 2"),
new ChecklistItem("Backend item 3"),
}))) { TreatLabelNameAsId = true}
)
});If you are looking for info on a specific method in TrelloDotNet then expand the Pages above and input the 'MethodName' (Example: 'AddCardAsync')