# Bug COMMS-180 - Reminders generate two or more lines for a work package in notification center, clicking one selects all

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

## Open points

_No work packages_

## Details

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

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Kabiru Mwenja |
| 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

  - Set up a date reminder in the future on a work package

  - Don't mark that work package notification line as read

  - Wait till the reminder is triggered

### What is the buggy behavior?

  - Two (or more) lines can now generated in Notification center for same work package: one for regular notifications, the other for the reminder

  - Clicking on one selects all other lines associated with the same WP

### What is the expected behavior?

  - Aggregate the Reminder notifications with other notifications (regular aggregation) so that only one item per work package is visible in the notification center.

  - Reminders given the highest priority (if set), so that if there are also other notifications later (like a mention or a change of assignee), any attached note is still visible in the list

  - In the unique case where there is both a date alert and a reminder, the last line will include the date alert and the reminder note

  - Date alerts are also given a higher priority than mentions
    
      - This avoids the inconsistency that would otherwise result when there's a mention + date alert + reminder (without a note), where the date alert takes precedence over the mention. This behaviour would be logical, since the date alert is more time-sensitive than a mention (and easily discovered in the activity tab).

<br>

  - ~~Clicking on a notification in the work package only selects that one, not the~~ *~~other~~* ~~line even if it's the same work package~~
    
      - ~~The user action (of a single click) is respected.~~

  - ~~If a user acceses the notification from the notification center and there are multiple work packages displayed.~~
    
      - ~~Ideally, the one they clicked will be selected.~~
    
      - ~~If not possible, the first work package in the list will be selected.~~

  - ~~The work package is only displayed once, with the most relevant update~~
    
      - ~~If a reminder exists, the reminder is the most relevant update~~
        
        <br>

### Screenshots and other files

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/259327/content">

<br>

### Environment information

**Community**  
OpenProject 15.1

**Browser:**  
Firefox, Mac (desktop)

**Language**  
EN
