# Bug NEX-724 - Nextcloud Smart Picker: Selecting an OpenProject work package does not insert the reference

Project: Stream Nextcloud app "OpenProject Integration"
Status: closed
URL: https://community.openproject.org/work_packages/NEX-724

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  – 2026-10-19 |
| Priority | Medium |
| Module |  |
| Target versions | Nextcloud Integration 3.4.0 |
| Observed in versions |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Before filing a report

We are using:

*   Nextcloud **33.0.9**
    
*   Nextcloud OpenProject Integration **3.2.0**
    

We searched for existing reports but could not find an issue matching this exact behavior.

### Steps to reproduce

Preconditions:

*   Nextcloud is connected to an OpenProject instance.
    
*   The user has successfully connected their personal OpenProject account in Nextcloud.
    
*   OpenProject data can be retrieved successfully from Nextcloud.
    
*   The OpenProject dashboard widget in Nextcloud displays work packages correctly.
    

Steps:

1.  Log in to Nextcloud with a user whose OpenProject account is connected.
    
2.  Open Nextcloud Talk or a Nextcloud Whiteboard.
    
3.  Open the Smart Picker using the `/` command.
    
4.  Select **OpenProject**.
    
5.  Search for a work package, for example by entering `test`.
    
6.  OpenProject work packages are successfully returned and displayed.
    
7.  Select one of the returned work packages.
    
8.  The Smart Picker closes / the selection is made, but no OpenProject link or reference is inserted into the Talk message or Whiteboard.
    

The issue is reproducible with multiple work packages.

For comparison, another Smart Picker provider, **Zammad**, works correctly in the same Nextcloud installation.

### What is the buggy behavior?

The OpenProject Smart Picker can successfully:

*   connect to OpenProject,
    
*   authenticate the user,
    
*   search for work packages,
    
*   display matching search results.
    

However, after selecting a work package, nothing is inserted into the target application.

No OpenProject reference or link appears in Talk or Whiteboard.

The integration otherwise works correctly:

*   The user&#x27;s OpenProject account is connected.
    
*   The Nextcloud OpenProject dashboard widget displays OpenProject objects.
    
*   OpenProject configuration is recognized correctly.
    
*   Work package searches return valid data.
    

This suggests that the problem occurs only when the selected Smart Picker result is returned to Nextcloud.

### What is the expected behavior?

After selecting an OpenProject work package in the Smart Picker:

1.  The selected work package should be inserted into the current Nextcloud application.
    
2.  In Talk, an OpenProject link/reference should be inserted into the message editor.
    
3.  In Whiteboard, the selected OpenProject object/reference should be inserted into the board.
    
4.  The resulting OpenProject URL should point to the selected work package.
    

###   

### Important note

The issue appeared after recent updates. The currently installed OpenProject integration version is:

`integration_openproject: 3.2.0`

###   

For example:

`GET /ocs/v2.php/apps/integration_openproject/api/v1/configuration`  
`HTTP 200`

### **Logs**

There are no relevant OpenProject-related errors in the Nextcloud server log when reproducing the issue.

A HAR capture was created while reproducing the problem.

The HAR shows that the OpenProject communication itself works successfully.

For example:

`GET /ocs/v2.php/apps/integration_openproject/api/v1/configuration HTTP 200`

and

```text
GET /ocs/v2.php/apps/integration_openproject/api/v1/work-packages?searchQuery=test&isSmartPicker=true
HTTP 200
```

The work-package search response contains valid OpenProject work packages.

Additional metadata requests such as work-package types also return HTTP 200.

There is no failed HTTP request after selecting a work package.

The JavaScript shipped with `integration_openproject 3.2.0` appears to generate the selected work-package URL client-side and then emit it to the Nextcloud Smart Picker.

The relevant flow appears to be:

`option:selected`  
`→ linkWorkPackageToFile()`  
`→ getWorkPackageLink()`  
`→ emit("submit", URL)`

Therefore, the issue appears to occur in the frontend interaction between the OpenProject Smart Picker and Nextcloud after the work package has already been successfully retrieved.

No relevant browser-console error has been identified so far.

A HAR file can be attached to this report.

###   

###   

###   

###   

###   

###   

###   

###   

###   

###   

###   

###   

###   

###   

###   

###   

###   

###   

<br>

### Environment information

_Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs_

**OpenProject installation type**

*   [x] Cloud edition
*   [ ] On-Premise
*   [ ] Packaged installation
*   [ ] Docker All-in-one container
*   [ ] Docker-compose installation
*   [ ] Other (please specify)

**OpenProject version**

_If you&#x27;re not running on the cloud edition, please specify the version of OpenProject you&#x27;re running. Example: v17.9.1_

<br>

**Browser**

*   [x] Chrome
*   [x] Firefox
*   [x] Safari
*   [ ] Mobile Safari
*   [ ] Other (please specify)

**Operating System**

*   [x] Windows
*   [x] Mac OS X
*   [ ] Mobile iOS
*   [ ] Mobile Android
*   [ ] Linux (please specify distro)
*   [ ] Chrome OS
*   [ ] Other (please specify)

**Language**

*   [ ] English
*   [x] German
*   [ ] Other:
