Skip to content

Commit

Permalink
Merge pull request #49 from Snowflake-Labs/use-json-string-for-issue-…
Browse files Browse the repository at this point in the history
…desc

Use json string for issue desc
  • Loading branch information
sfc-gh-pkommini authored Dec 13, 2022
2 parents 9d445d8 + 79d959e commit 822ba68
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions handler_functions_sql/jira_handler_v2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ${jira_api_function}(
'name', COALESCE(payload['issue_type'], '${default_jira_issue_type}')
),
'summary', alert['TITLE']::STRING,
'description', ${json_beautify_function}(
'description', '```' || ${json_beautify_function}(
TO_JSON(
OBJECT_CONSTRUCT(
'Alert ID', alert['ID']::STRING,
Expand All @@ -35,8 +35,9 @@ ${jira_api_function}(
'Description', alert['DESCRIPTION']::STRING,
'Event Data', alert['EVENT_DATA']::STRING
)
), 4
)
),
4
) || '```'
)
)
),
Expand Down

0 comments on commit 822ba68

Please sign in to comment.