...
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
A conditional can be added at a task level. A user can click on the dropdown icon on the task and choose Add a conditionalAdding 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.
...
The user also has an option to select “is” or “is not” from the dropdownOperators 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
On hover we have the delete button to remove a conditional.
Removing a conditional however only removes the conditional, not all the tasks underneath itDeleting 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.
...
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 and modified still remain. (Open question)
...
Adding multiple conditions
...
You can hover over the row to remove the condition.
...
Future Scope
Nested conditionals
Graphical view of conditionals and tasks (Taylor, AMPAC)
Flowchart ingestion to recreate tasks/conditionals
AI Creation of a playbook
Open Questions
Do we go with multiple conditionals, or nested conditionals.