# Feature COMMS-195 - Amend work package comment href from `#activity-<journal-sequence>` to `#comment-<journal-id>` with backwards compatibility for old links

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

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 16.0.0 |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

| ID | Subject | Status | Decision |
| --- | --- | --- | --- |
| COMMS-259 | Readiness for feature flag removal | resolved |  |

## Use cases

_No work packages_

## Features and Chunks

| ID | Subject | Type | Status | Assignee | Target versions | Spent time |
| --- | --- | --- | --- | --- | --- | --- |
| COMMS-196 | Add feature flag for new comment number copy structure | Implementation | closed |  |  |  |
| COMMS-197 | Ensure backwards compatibnbility for old links | Implementation | closed |  |  |  |

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Kabiru Mwenja |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** user with access to work package comments  
**I want to** click on a drop down to &quot;copy link&quot; to the comment  
**so that** I can easily backlink to that specific comment

**And I want to** be able to access old links that use the `#activity-<comment-number>` format.

**Acceptance criteria**

*   There is no visible numbering of activity comments anymore, even for non-restricted-visibility comments.
    
    *   Ideally, old links with `#activity-<comment-number>` still work.
        
    *   Copying the URL of a comment will have a new URL scheme including a real, persistent ID and not a generated number anymore so that it stays the same even when other comments are added or removed from the activity, e.g. `#comment-<journal-id>`
        
    *   When that URL is opened the browser will auto-scroll to have the comment in the visible viewport.
        

QA Note: This feature is behind a feature flag `OPENPROJECT_FEATURE_WORK_PACKAGE_COMMENT_ID_URL_ACTIVE`
