# Bug BNE-183 - Context for attributes menu should look like work package link context menu

Project: Stream BlockNote extensions
Status: closed
URL: https://community.openproject.org/work_packages/BNE-183

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Text editor / BlockNoteJS / OpenProject Extensions, Modules and project features / Documents |
| Target versions | 18.0.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 |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

As a user seeing a work package attribute in a document  
I want to be able to know where it comes from and quickly open it

**Acceptance Criteria**

  - Like for the work package links, the dropdown for work package attributes should include
    
    1\. Link to open the WP
    
      - Use same icon like in work package links
    
      - Open in a new tab
    
      - Text should be "Open <id or identifier>", e.g. "Open <mention class="mention" data-id="1234" data-type="work_package" data-text="#1234">#1234</mention>" or "Open BNE-5"
    
    2\. Dropdown for changing "size" (label / value / label + value)
    
    3\. Remove
    
      - Use same icon like in work package links

  - It should have the same look and feel as the context menu of the work package links
    
      - If code can be reused, I think it would be okay to also have the id/identifier in the "Open" of the work package links

<br>

Context Menu of the work package link:

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

<br>
