You would create a special menu entry, and its children would be automatically added and include all spaces that are assigned a certain space category.