Skip to content

Commit

Permalink
Update notification-integrations.mdx
Browse files Browse the repository at this point in the history
added a workaround for undefined errors, can you please review the copy ?
  • Loading branch information
Matan2801 committed Jun 20, 2022
1 parent 12738cf commit f4bd4be
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,10 @@ Read more about each of our specific notification integrations.
src={webhookPreviewError}
/>

<Callout variant="tip">
An "undefined" type errors may indicate that the attribute was not indexed recently or does not exists. To workaround this, you can try to an if else statement. For example: ` "closed_at": {{#if issueClosedAtUtc}} {{ json issueClosedAtUtc }} {{else}}"None"{{/if}} `
</Callout>

If the webhook payload conforms to a valid JSON, you can send a test notification to your defined webhook destination.

<img
Expand Down

0 comments on commit f4bd4be

Please sign in to comment.