# Bug SSI-199 - Impossible to group by CF hierarchy multi-select

Project: Stream Storage Integrations
Status: closed
URL: https://community.openproject.org/work_packages/SSI-199

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 15.2.0 |
| Observed in versions | 15.2.0 |
| Bug found in version (deprecated) | 15.2.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Andreas Pfohl |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

Grouping by custom field of type hierarchy is currently broken. Multi select and single select are affected.

<br>

Can be observed here: [https://qa.openproject-edge.com/projects/test-project-cecile/work\_packages?query\_id=3750](https://qa.openproject-edge.com/projects/test-project-cecile/work_packages?query_id=3750)

<img class="op-uc-image op-uc-image_inline"><img class="image_resized op-uc-image op-uc-image_inline" style="width:851px;" src="/api/v3/attachments/249276/content">

Another side-effect is, that some Work Packages are not sorted into the correct groups.

<img class="image_resized op-uc-image op-uc-image_inline" style="width:978px;" src="https://community.openproject.org/api/v3/attachments/249452/content">

There is also a related error shown in AppSignal: [https://appsignal.com/openproject-gmbh/sites/673aff9f83eb6776b27e7743/exceptions/incidents/464](https://appsignal.com/openproject-gmbh/sites/673aff9f83eb6776b27e7743/exceptions/incidents/464)

``AppSignal - undefined method `name' for nil``. This is due to incorrect creation of groups.
