-
-
Notifications
You must be signed in to change notification settings - Fork 5
MemberCondition
Rasmus Wulff Jensen edited this page Nov 1, 2023
·
2 revisions
Back to Automation Condition List
A condition that checks Members on a Card is present/not present
| Option | Description |
|---|---|
Constraint (Required) |
The constraints of the condition (AnyOfThesePresent, NoneOfTheseArePresent, AllOfThesePresent or NonePresent) |
MemberIds (Required) |
The Ids of the Member or Members to check. Tip: These can be Member-names instead of Ids if you set 'TreatMemberNameAsId' to True |
TreatMemberNameAsId (Optional) |
Set this to 'True' if you supplied the names of members 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("Add a Warning sticker if a Card is move to 'In Progress' but no Member is present on the card",
new CardMovedToListTrigger(CardMovedToListTriggerConstraint.AnyOfTheseListsAreMovedTo, "In Progress") { TreatListNameAsId = true },
new List<IAutomationCondition>
{
new MemberCondition(MemberConditionConstraint.NonePresent) // <-- Our condition
},
new List<IAutomationAction>
{
new AddStickerToCardAction(new Sticker(StickerDefaultImageId.Warning))
});If you are looking for info on a specific method in TrelloDotNet then expand the Pages above and input the 'MethodName' (Example: 'AddCardAsync')