# Feature BNE-69 - Create work package links through # notation in documents / BlockNote

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

## Planning

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

## OPEN POINTS / FEEDBACK

_No work packages_

## Use cases

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| BNE-91 | Code maintenance | Fix test for op-blocknote-extensions in open project | closed |  | 17.5.0 |  |  |
| BNE-85 | Bug | Improve size menu and remove L+XL blocks | closed |  | 17.5.0 |  |  |
| BNE-82 | Bug | Wrong cursor placement after inserting links to Work Packages in BlockNote | closed |  | 17.5.0 |  | Modules and project features / Documents, Modules and project features / Text editor / BlockNoteJS / OpenProject Extensions |
| BNE-80 | Bug | Arrow-down selection for link work package block prevented by tooltip | closed |  | 17.5.0 |  | Modules and project features / Documents, Modules and project features / Text editor / BlockNoteJS / OpenProject Extensions |
| BNE-79 | Bug | Inline work package chip has no visual highlight when selected | closed |  | 17.5.0 |  | Modules and project features / Documents, Modules and project features / Text editor / BlockNoteJS / OpenProject Extensions |
| BNE-78 | Bug | Inconsistent inline-link heights in text flow | closed |  | 17.5.0 |  | Modules and project features / Documents, Modules and project features / Text editor / BlockNoteJS / OpenProject Extensions |
| BNE-77 | Bug | Dropdown option order changes depending on selected item | closed |  | 17.5.0 |  | Modules and project features / Documents, Modules and project features / Text editor / BlockNoteJS / OpenProject Extensions |
| BNE-76 | Bug | Inconsistent contrast for type colors when switching themes | closed |  | 17.5.0 |  | Modules and project features / Documents, Modules and project features / Text editor / BlockNoteJS / OpenProject Extensions |
| BNE-75 | Bug | Type colors are not applied correctly at the beginning | closed |  | 17.5.0 |  | Modules and project features / Documents, Modules and project features / Text editor / BlockNoteJS / OpenProject Extensions |
| BNE-74 | Bug | Сards converting to hash links on copy-paste and DnD | closed |  | 17.5.0 |  | Modules and project features / Documents, Modules and project features / Text editor / BlockNoteJS / OpenProject Extensions |
| BNE-73 | Bug | Inserting "#" inside text removes content after cursor | closed |  | 17.5.0 |  | Modules and project features / Documents, Modules and project features / Text editor / BlockNoteJS / OpenProject Extensions |
| BNE-72 | Bug | Incorrect resize behavior for pasted inline-links | closed |  | 17.5.0 |  | Modules and project features / Documents, Modules and project features / Text editor / BlockNoteJS / OpenProject Extensions |
| BNE-71 | Code maintenance | Use translations for size names and descriptions | closed |  | 17.5.0 |  |  |
| BNE-70 | Code maintenance | BlockNote Extensions: Adapt README with updated setup instructions | closed | Judith Roth | 17.5.0 |  |  |
| BNE-89 | Bug | Fix markdown generation in Hocuspocus and manual copy to clipboard | rejected | Judith Roth | 17.5.0 |  | Modules and project features / Documents, Modules and project features / Text editor / BlockNoteJS / OpenProject Extensions |

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Modules and project features / Documents |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups | https://www.figma.com/design/d3zhm0R0pjHJvQd3XTlxuS/New-Documents-module?node-id=3051-695&p=f |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Wieland Lindenthal |
| Product manager |  |
| Feature Lead |  |
| Developers | Ihor Dubas |
| Designer | Parimal Satyal |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

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

## Description

**Context**

This is a continuation of the out of scope bits of <mention class="mention" data-id="72817" data-type="work_package" data-text="##72817">\#\#72817</mention>. Both will be released in the same version.

**Acceptance criteria**

This feature concerns extending work package links in documents with the scope of items in green in the table below.

  - Rename captions in the dropdown as defined below ("Dropdown captions").

  - support legacy \#-based notation.
    
      - Goal: <mention class="mention" data-id="423" data-type="work_package" data-text="##423">##423</mention> links to work package ID 423 in Compact size.
    
      - Risk: users confuse it with headings (\#\# is h2; the only difference is it requires a space after the \#\#)
    
    <br>

<figure class="table op-uc-figure_align-center op-uc-figure"><table class="op-uc-table"><tbody><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Mode</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Inline/Block?</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Data shown of work package</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Legacy notation</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p">In scope of this FEATURE</p></td><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Dropdown captions</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><strong>Descriptive Caption</strong></p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">XXS</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Inline</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Identifier</p></td><td class="op-uc-table--cell" style="background-color:hsl(86, 100%, 91%);"><p class="op-uc-p">#</p></td><td class="op-uc-table--cell"><p class="op-uc-p">(already done)</p></td><td class="op-uc-table--cell" style="background-color:hsl(86, 100%, 91%);"><p class="op-uc-p"><strong>Tiny (inline)</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p">Tiny - Identifier</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">XS</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Inline</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Type, Identifier, Subject</p></td><td class="op-uc-table--cell" style="background-color:hsl(86, 100%, 91%);"><p class="op-uc-p">##</p></td><td class="op-uc-table--cell"><p class="op-uc-p">(already done)</p></td><td class="op-uc-table--cell" style="background-color:hsl(86, 100%, 91%);"><p class="op-uc-p"><strong>Compact (inline)</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p">Compact - Type, Identifier, Subject</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">S</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Inline</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Status, Type, Identifier, Subject</p></td><td class="op-uc-table--cell" style="background-color:hsl(86, 100%, 91%);"><p class="op-uc-p">###</p></td><td class="op-uc-table--cell"><p class="op-uc-p">(already done)</p></td><td class="op-uc-table--cell" style="background-color:hsl(86, 100%, 91%);"><p class="op-uc-p"><strong>Regular (inline)</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p">Regular &nbsp;- Status, Type, Identifier, Subject</p></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">M</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Block</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Identifier, Subject, Type, Status</p></td><td class="op-uc-table--cell" style="background-color:hsl(86, 100%, 91%);"><p class="op-uc-p"><strong>n/a</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p">(already done)</p></td><td class="op-uc-table--cell" style="background-color:hsl(86, 100%, 91%);"><p class="op-uc-p"><strong>Compact card</strong></p></td><td class="op-uc-table--cell"><p class="op-uc-p">Compact card - Status, Type, Identifier, Subject</p></td></tr></tbody></table></figure>

**Technical notes**

  - 
    <br>

**Permissions and visibility considerations**

  - *Nothing new*

**Translation considerations**

  - The dropdown captions are new strings. They need to be adapted in the op-blocknote-extensions Crowdin project.

**Out of scope**

  - This is only to link existing work packages.

  - Creating work packages not in scope. See <mention class="mention" data-id="67552" data-type="work_package" data-text="##67552">\#\#67552</mention>.
