# Bug XWI-181 - References to work packages are not properly filtered for own instance

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Integrations / XWiki |
| Target versions | 18.0.0 |
| Observed in versions | 17.9.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Effort (shirt size) |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Configure an OpenProject instance (A) to integrate with an XWiki
    
2.  Configure a second OpenProject instance (B) to integrate with the same XWiki
    
3.  Create work packages with the same (numeric) ID on both OP instances
    
4.  Link the work package on A to a page in XWiki
    
5.  Check the work package references in B
    

### What is the buggy behavior?

*   The second OpenProject instance shows a wiki page reference to its own work package, even though it has never been linked
    

### What is the expected behavior?

*   ID collisions across two OP instances should not result in a link being shown
    

### Technical note

This happens due to us filtering for `withInstance=<uuid>`, when XWiki expects `instance=<uuid>`

<br>
