fix(Jira): Add issue delted webhook code #89498
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
need to add tests :oopsie
Context: When a user deletes a Jira issue that's created or somehow linked to a Sentry issue, we don't delete that link, so when a user updates the Sentry issue, then we'll try and update a ghost issue.
This behavior is happening because we don't actually listen to the
issue-deletedwebhook from Jira. We only listen toissue-updated, which is different 🫠 . This PR adds a new webhook endpoint and does the followingExternalIssuerepresents a Jira issue that's connected to anIntegrationobjectGroupLinkrepresents a 'link' between a Sentry issue and some external(3p) object, in this case a Jira issue