Skip to content

[bug]: Unable to Search Issues for Re-linking After Relationship Removal #6288

@shaolin-tw

Description

@shaolin-tw

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

Description
When an issue relationship is established and then removed, the issue can no longer be found in the search bar for re-linking. This seems to happen because the search logic excludes issues with deleted relationships.

Expected Behavior
Issues with previously deleted relationships should still be searchable and selectable for re-linking.

Possible Cause
The search logic likely filters out relationships where deleted_at is not NULL.
Relevant code:
apiserver/plane/app/views/search/issue.py#L55

Steps to reproduce

  1. Create a relationship between two issues (e.g., Issue A and Issue B).
  2. Remove the relationship between Issue A and Issue B.
  3. Try to search for Issue B in the "Relates to" search bar for Issue A.
  4. Observe that Issue B does not appear in the search results.

Environment

Production

Browser

Google Chrome

Variant

Self-hosted

Version

v0.24.1

Metadata

Metadata

Labels

🐛bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions