# Bug COMMS-992 - When work packages are grouped by X, it's not possible to drag and drop an item to the last line inside the same group

Project: Stream Communicator
Status: closed
URL: https://community.openproject.org/work_packages/COMMS-992

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Work packages |
| Target versions | 17.9.0 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

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

## Description

Extracted from <mention class="mention" data-id="79080" data-type="work_package" data-text="##COMMS-986" data-display-id="COMMS-986">\#\#COMMS-986</mention>.

### 

### Steps to reproduce

1.  Login and open a work package page of a project

2.  Click on more menu

3.  Select group by

4.  Choose version/target version

5.  As the work packages are grouped, drag and drop a work package from any position to the last one within the same group (the same version) - NOTE: this issue only happens within a version grouping, work packages in the "groupless" set work okay.

### What is the buggy behavior?

  - It gets carried over to the next group

### What is the expected behavior?

1.  It should be dropped to the last position

### 

### Environment information

**OpenProject version**

*17.8*

**Browser**

- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [ ] Windows
- [ ] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [x] Linux (please specify distro)
- [ ] Chrome OS
- [ ] Other (please specify)
