# Bug NEX-727 - Nextcloud Smart Picker: Listing OpenProject work packages does not work

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| 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 | Shribisha Buddhacharya |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

<br>

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.
    

For viewing the file if not set up (docker) :  
\- run `docker compose exec nextcloud /bin/bash`  
\- viewer and text apps are required, you can check by running `occ a:l` command  
\- go to apps dir: `cd apps`  
\- clone viewer app: `git clone https://github.com/nextcloud/viewer.git -b stable35 viewer --depth=1`  
\- clone text app: `git clone https://github.com/nextcloud/text.git -b stable35 text --depth=1`

Steps:

1.  Log in to Nextcloud with a user whose OpenProject account is connected.
    
2.  Create a new Markdown file, a new Whiteboard, and open Nextcloud Talk.
    
3.  In each of these, open the Smart Picker by typing `/`.
    
4.  Select **OpenProject work packages.**
    

### What is the buggy behavior?

*   OpenProject work packages are not listed.
    
    <br>
    
    <img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/927274/content">
    

### What is the expected behavior?

1.  OpenProject work packages should be listed.
    

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

console logs:

```bash
Uncaught (in promise) Error: Could not find initial state admin-config of integration_openproject
   at n (integration_openproject-reference.js:2:746161)
   at Proxy.data (integration_openproject-reference-picker-lazy.js?v=6420be2e91be78252e12:1:40251)
   at gt (integration_openproject-reference.js:2:47941)
   at on (integration_openproject-reference.js:2:76122)
   at integration_openproject-reference.js:2:75601
   at nn (integration_openproject-reference.js:2:75609)
   at N (integration_openproject-reference.js:2:61672)
   at P (integration_openproject-reference.js:2:61566)
   at _ (integration_openproject-reference.js:2:58278)
   at Y (integration_openproject-reference.js:2:68507)
```
