Attempting To Generate Sentry Issue URL from JSON payload

My organization is attempting to transition to Sentry for our error reporting by integrating it into our existing ticketing system via use of the Sentry WebHook upon logging of a new issue. The end goal is to have a ticket in our system for each unique issue, with a link to sentry for that issue. I have successfully created new tickets in our system that represent the issue, but want to be able to set a field with a link to the issue on sentry as follows:
//sentry.io/org/project/issues/issueId

The JSON payload includes an event UID and a Project ID, but I am looking for a way to get at the issue ID. Is this possible? Generation of a link to the event itself would be fine as well, but I can’t figure out how to do so without knowing the issue ID.

Any help or advice would be greatly appreciated!

You should have access to the group id as well - here is code for how it’s included in the payload.

You’ll want something like this: /${organization}/${data['project']}/issues/${data['id']}/

1 Like

Thank you very much! By accident I had copied just the event.data object into my test bin, the full payload contains a helpful already built group url! Thanks again for pointing me in the right direction!

1 Like