Overview
Conditional tasks in Mattermost Playbooks provide users with the ability to tailor task visibility and execution based on specific property values. This dynamic feature allows for greater flexibility and adaptability, making workflows more responsive to changing circumstances.
Add conditional
Adding Conditionals Users can easily add conditionals to any task by selecting the option from a dropdown menu. These conditionals support fields such as:
Status: Define conditions based on task status.
Text: Match against specific textual inputs.
Select Fields: Utilize predefined options for conditional logic.
The conditional allows users to choose the fields available, particularly the status, text and any select fields initially.
Operators like "is" and "is not" allow for precise control, and users can input or select values as needed.
And the user can type a value, or select it from the list based on the values available (if the property type is select or status).
Deleting a conditional
Deleting Conditionals: Hover over the conditional to reveal a delete button, removing only the condition while retaining tasks underneath.
Drag & Drop
By default the conditional is only added to the selected task, but the user can drag and drop other tasks into it.
Dragging a conditional
Whole conditionals including their tasks can be dragged to other sections or below other tasks.
Run Interaction
When a property value gets updated, it renders the tasks conditionally based on that.
A message is also posted in the channel informing the user in the channel about the newly introduced tasks.
The new rendered tasks are highlighted with an icon to show which value they were rendered in response of.
If the value however gets updated after that to someone else, the old rendered tasks that were conditionally rendered still remain.
Adding multiple conditions
You can add multiple conditions by hovering over the conditional and clicking the plus sign.
You would not be able to add more than 2 conditions.
You can decide whether the conditional is an And or an Or.
Removing a condition
You can hover over the row to remove the condition.