# Bug OP-6734 - Group counts only factor in the current page

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-6734

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 10.4.0 |
| Observed in versions |  |
| Sprint | 10.4.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

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

## Description

### **Steps to reproduce:**

1.  Go to page a work package list with more work packages than the page size
2.  Group by an attribute so that the group will span more than one page, e.g. [https://qa.openproject-edge.com/work\_packages?query\_props=%7B%22c%22%3A%5B%22id%22%2C%22project%22%2C%22subject%22%2C%22type%22%2C%22status%22%2C%22priority%22%2C%22assignee%22%2C%22startDate%22%2C%22dueDate%22%5D%2C%22tv%22%3Afalse%2C%22hla%22%3A%5B%22status%22%2C%22priority%22%2C%22dueDate%22%5D%2C%22hi%22%3Afalse%2C%22g%22%3A%22priority%22%2C%22t%22%3A%22id%3Aasc%22%2C%22f%22%3A%5B%7B%22n%22%3A%22status%22%2C%22o%22%3A%22o%22%2C%22v%22%3A%5B%5D%7D%5D%2C%22pa%22%3A1%2C%22pp%22%3A20%7D](https://qa.openproject-edge.com/work_packages?query_props=%7B%22c%22%3A%5B%22id%22%2C%22project%22%2C%22subject%22%2C%22type%22%2C%22status%22%2C%22priority%22%2C%22assignee%22%2C%22startDate%22%2C%22dueDate%22%5D%2C%22tv%22%3Afalse%2C%22hla%22%3A%5B%22status%22%2C%22priority%22%2C%22dueDate%22%5D%2C%22hi%22%3Afalse%2C%22g%22%3A%22priority%22%2C%22t%22%3A%22id%3Aasc%22%2C%22f%22%3A%5B%7B%22n%22%3A%22status%22%2C%22o%22%3A%22o%22%2C%22v%22%3A%5B%5D%7D%5D%2C%22pa%22%3A1%2C%22pp%22%3A20%7D)

### **Actual Behavior**

Only the work packages currently listed on the page are factored into the group count

E.g.

Page 1:

![](/api/v3/attachments/17156/content)

Page 2:

![](/api/v3/attachments/17157/content)

The number on both pages should be 38.

### **Expected Behavior**

The group count should include all work packages that fit the query and not only those on the current page.
