plane icon indicating copy to clipboard operation
plane copied to clipboard

[feature]: issue-relation support in API

Open tobias-urdin opened this issue 1 year ago • 3 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Summary

There is no issue-relation API endpoint in the API.

There is such an endpoint for the app on /api/workspaces/{workspace}/projects/{project}/issues/{issue}/issue-relation/ but there is no such endpoint in the API on /api/v1/workspaces/{workspace}/projects/{project}/issues/{issue}/issue-relation/

Why should this be worked on?

If you are migrating issues from another system, or just want to managed relates_to/blocked_by/blocking relationships between issues using the API that is currently not possible and you must do it through the UI or directly in the database.

tobias-urdin avatar Dec 19 '24 19:12 tobias-urdin

It would be nice if it also supported overriding with created_by and created_at like the other API endpoints, when migrating from another system that's very useful.

tobias-urdin avatar Dec 19 '24 19:12 tobias-urdin

To anybody landing here and want a workaround. We abuse the API that is used by the web app on:

POST /api/workspaces/{workspace}/projects/{project_id}/issues/{issue_id}/issue-relation/

By passing the session-id cookie and that working for now, but that's not the official v1 API so this feature is still needed in the official API.

tobias-urdin avatar Jan 14 '25 10:01 tobias-urdin

Hey @tobias-urdin ! Thanks you for creating this issue - I ran into the same problem and found the same solution before bumping into your ticket :)

Could you tell me how do you like this setup now? Do you still use it? How long does the cookie live for?

tim-sha256 avatar Nov 24 '25 20:11 tim-sha256