# Feature XWI-22 - Create and delete relation wiki page links

Project: Stream XWiki integration
Status: closed
URL: https://community.openproject.org/work_packages/XWI-22

## Planning

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

## OPEN POINTS / FEEDBACK

_No work packages_

## Use cases

_No work packages_

## Features and Chunks

| ID | Subject | Type | Status | Assignee | Target versions | Spent time |
| --- | --- | --- | --- | --- | --- | --- |
| XWI-55 | Add search wiki page dialog | Implementation | closed |  |  |  |
| XWI-56 | Add create wiki page dialog | Implementation | closed |  |  |  |
| XWI-57 | Add action menu button | Implementation | closed |  |  |  |
| XWI-58 | Add deletion action to wiki page link | Implementation | closed |  |  |  |
| XWI-59 | Show existing relation wiki page links | Implementation | closed |  |  |  |
| XWI-72 | Add queries to fetch relation wiki page links | Implementation | rejected |  |  |  |
| XWI-86 | Add login button if user is not connected to the provider | Implementation | closed |  |  |  |
| XWI-92 | Add page info query for external wiki providers | Implementation | closed |  |  |  |
| XWI-101 | Show error states in page link component | Implementation | closed |  |  |  |
| XWI-111 | Show validation errors in add existing and create new page dialogs | Implementation | new |  |  |  |
| XWI-112 | Add create internal wiki page command | Implementation | closed |  |  |  |
| XWI-115 | Add create xwiki page command | Implementation | closed |  |  |  |
| XWI-116 | Add service to create a page and then create a page link | Implementation | closed |  |  |  |

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups | https://www.figma.com/design/m0Aj4o5upRvD2kdSB7mMQT/XWiki-Integration?node-id=3074-9606 |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| 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 user  
**I want to** add and remove wiki page links to a work package  
**so that** I have quick references tied to that work package.

**Acceptance criteria**

*   The user must be able to search an existing wiki page and link it to the work package.
    
*   The user must be able to create a new wiki page in the wiki hierarchy structure and link it to the work package.
    
*   Relation wiki page links must be displayed in the wiki tab of a work package.
    

Technical information

*   ~~Create/Delete a wiki page link at XWiki:~~
    
    *   `~~POST /wikis/{wikiName}/openproject/documents/{id}/links~~`
        
    *   `~~DELETE /wikis/{wikiName}/openproject/documents/{id}/links~~`
        
*   Creating a wiki page:
    
    *   `PUT /wikis/{wikiName}/spaces/{spaceName}[/spaces/{nestedSpaceName}]*/pages/{pageName}`
        
*   New information about how the dialogs should work:  
      
      
    

```text
Add existing:
It's a FilterableTreeView, we already show the first level of nodes. We then have progressive load in browsing.

When typing, I replace the content with my search result (no progressive load needed). 

Then I go back to the initial state.
--
If from editor, pick provider first, then go to second step. (Provider).


New wiki page (mockup):
- Title (first)
Next step:
- (Find a location) Browse, only 1st level shown, FilterableTree View. User can progressively load per node if they want.
 - Or just type to find the correct page. Default FilterableTreeView behaviour.
- New wiki page is created and a link to it added; user stays on page.

--
- If you start from the editor, no provider context. In this case, show a provider selector after title. Then you select location.


Next steps:
    - Eric speaks to Henriette about FitlerableTreeView behaviour (browse + search as in implemented in the new Project selector).
    - Parimal comes up with mockups for the add existing and new flows (both with and without provider context)
```
