My current requirement is to create charts out of queries in Azure DevOps (for ex. pie charts) that visualize certain work items and group by the Area Path of the work items. However, the grouping in the chart should only consider the first sublayer. So for instance, it should only consider root-path/x instead of root-path/x/y and root-path/x/z individually.
The only solution I could think of so far was to consider the Team-field instead of the Area Path-field as a team should be associated with every subpath, but apparently, teams aren't associated with work items and the Team-fields in the result of my queries remain empty.
Is there an other solution or "workaround" to my problem?