# Feature OP-17277 - Add relation when linking work packages inline

Project: OpenProject
Status: in specification
URL: https://community.openproject.org/work_packages/OP-17277

## Planning

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

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Modules and project features / Relations and scheduling, Modules and project features / Text editor |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan |  |

## Details

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

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers | OP Dev Sirius Team |
| Designer | Parimal Satyal |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

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

## Description

**As** a project member  
**When I** link to another work package from within the rich text fields, description, comment, etc.&nbsp;  
**I want to** automatically create a relationship between the current and the linked work package  
**so that** it a lot quicker to establish a bidirectional link that helps me later to find related work packages coming from the other direction.

**Acceptance criteria**

*   When
    
    *   pasting a work package url
        
    *   or using the hash(es) notation to add a work package to the description field or comment box
        
*   a little pop-over asks for the relation type, having &quot;Related&quot; as the default.
    
*   that modal has an &quot;Add relation&quot; and a &quot;skip&quot; button
    
*   If the user moves the cursor away from the actual link, the pop-over automatically disappears avec 2 seconds
    
*   If there is already a relationship (like a parent-child, &quot;related to&quot; or any other relation), do not show the pop-over. There can only be one relationship between two work packages.
