-
Notifications
You must be signed in to change notification settings - Fork 2
AddLabelsToCardAction
Rasmus Wulff Jensen edited this page Nov 1, 2023
·
3 revisions
Back to Automation Action List
This Automation Action adds a set of Labels to a card if they are not already present.
Option | Description |
---|---|
LabelIds |
The Label-ids to add |
TreatLabelNameAsId |
Set this to 'True' if you supplied the names of labels instead of the Ids. While this is more convenient, it will in certain cases be slightly slower and less resilient to the renaming of things. |
Automation sampleAutomation = new Automation("When Card is moved to the 'On Hold' column, Add a the Blocked Label to the card",
new CardMovedToListTrigger(CardMovedToListTriggerConstraint.AnyOfTheseListsAreMovedTo, "On Hold") { TreatListNameAsId = true },
null, // No conditions necessary
new List<IAutomationAction>
{
new AddLabelsToCardAction("Blocked") { 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')