# Feature OP-10892 - Link existing Nextcloud files from within OpenProject

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-10892

## Planning

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

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

| ID | Subject | Type | Status | Assignee | Target versions | Spent time |
| --- | --- | --- | --- | --- | --- | --- |
| OP-11630 | Add success notification toast after linking files from OP side | 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 |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer | Marc Alcobé |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

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

## Description

**As** a user  
**I want to** link an existing file from Nextcloud to a OpenProject work package  
**so that** I can keep track of the files related to my work packages directly from OpenProject

## **Acceptance criteria**

  - The file picker specified in <mention class="mention" data-id="43654" data-type="work_package" data-text="#43654">\#43654</mention> needs to be fully functional to be able to complete this flow.
  - The process of linking an existing file should be the next:
    1.  The user clicks on the link "link existing files" on the files tab:  
        <img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/37324/content">
    2.  User needs to select all the files needed (in multiple levels of navigation):  
        <img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/37447/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/37450/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/37448/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/37449/content">
    3.  Click on the "Link files" button in the action bar.
    4.  A success message appears on top of the screen as a tooltip (like in attachments).
  - In case the user clicks on the cancel or outside the modal (50% black area) all the selection is canceled and the modal its closed.

## Figma

<https://www.figma.com/file/gtLQfPe09X7XugAH8L7dTy/Nextcloud-Integration?node-id=2439%3A71824>
