-
Notifications
You must be signed in to change notification settings - Fork 2
CardCoverCondition
Rasmus Wulff Jensen edited this page Nov 1, 2023
·
3 revisions
Back to Automation Condition List
Check if a Card has a specific Cover or not
Option | Description |
---|---|
Constraint (Required) |
The constraint for the Cover (One of these: DoesNotHaveACover , DoesNotHaveACoverOfTypeColor , DoesNotHaveACoverOfTypeImage , HaveACover , HaveACoverOfTypeColor , HaveACoverOfTypeImage ) |
Automation sampleAutomation1 = new Automation("Remove Cover if present when card is moved to 'review List'",
new CardMovedToListTrigger(CardMovedToListTriggerConstraint.AnyOfTheseListsAreMovedTo, "Review") { TreatListNameAsId = true },
new List<IAutomationCondition>
{
new CardCoverCondition(CardCoverConditionConstraint.HaveACover) // <--Our condition
},
new List<IAutomationAction>
{
new RemoveCoverFromCardAction()
});
Automation sampleAutomation2 = new Automation("Add a start-date if cover does not have an image cover when card is moved to 'review List'",
new CardMovedToListTrigger(CardMovedToListTriggerConstraint.AnyOfTheseListsAreMovedTo, "Review") { TreatListNameAsId = true},
new List<IAutomationCondition>
{
new CardCoverCondition(CardCoverConditionConstraint.DoesNotHaveACoverOfTypeImage) // <--Our condition
},
new List<IAutomationAction>
{
new SetFieldsOnCardAction(new SetCardStartFieldValue(DateTimeOffset.UtcNow))
}
);
If you are looking for info on a specific method in TrelloDotNet then expand the Pages above and input the 'MethodName' (Example: 'AddCardAsync')