Hello Mautic Team,
Description:
In earlier versions of Mautic, segment filters allowed the use of parentheses (or logical grouping) to create nested filter rules such as:
(condition A AND (condition B OR condition C))
This was extremely useful when building complex audiences where certain conditions needed to be grouped together logically.
In Mautic 6 (and currently in Mautic 7A as well), the filter builder no longer provides this level of flexibility. Filters can only be combined sequentially with AND or OR, and OR typically forces the creation of a new group rather than allowing true nesting. This limits the ability to represent more complex logic without duplicating conditions or splitting into multiple segments.
1. Precise targeting:
Example: All contacts in Germany who are either in Segment X OR have Tag Y.
Desired logic:
country = Germany AND (segment = X OR tag = Y)
2. Reducing duplication:
Without parentheses, we must create multiple segments or duplicate filters, which is harder to maintain and can become confusing at scale.
3. Cleaner audience building:
Nested logic is standard in most query builders (SQL, CRM filters, marketing automation tools). Bringing it back would align Mautic with user expectations.
Proposed Solution:
* Re-introduce support for parentheses or nested grouping in the segment filter UI.
* Allow users to explicitly group conditions together (drag-and-drop or “Add subgroup” button).
* Ensure the segment query builder reflects this nested logic accurately in SQL.
Open Question to the Developers:
Since SQL fully supports complex logical conditions with parentheses, why is Mautic now so limited after removing this capability? Was there a deliberate design decision, or is this simply an oversight? Can the developer team explain why this critical feature was removed ?
Thank you for considering this improvement and for your continued work on making Mautic more flexible and user-friendly.