No way to tell if an Issue was unlinked through Sentry
Problem Statement
The Linear integration doesn't know if an issue has been unlinked on the Sentry side.
When you create or link a Sentry issue to a Linear issue we record this link on our end. But if you then remove the link/connection in Sentry (click the little X on an issue page), we have no way of knowing this happened and will continue to react to webhooks regarding that issue.
Solution Brainstorm
We would like either (or both):
- A webhook if an issue is unlinked in Sentry.
- When looking up an issue in Sentry through API, get information on external issues linked to the issue. This way we could at least double check, before making changes based on webhooks, that the issue is still linked.
Product Area
APIs
Assigning to @getsentry/support for routing ⏲️
Routing to @getsentry/product-owners-settings-integrations for triage ⏲️
Thanks for reporting @skbogner. We currently don't have webhooks for link and unlink, it seems like a useful feature though. Will add it to backlog to look back at it.
Adding a note here as we have another customer who requested this functionality Customer Case here https://www.notion.so/sentry/Webhook-for-link-unlink-action-in-Issues-17a8b10e4b5d80e9acb0efa70412d41b
Thanks for linking the customer case @gid-sentry. I'll post an updates when I have timelines.
FYI, In the meantime integrators can query this endpoint: GroupExternalIssuesEndpoint and path, which we're working to publish officially soon, to see if an issue is linked/unlinked. This endpoint will return all custom integrations the issue is linked to. If the issue is not linked, the endpoint will return nothing.