From c56ed1f6eba02e28e6622807161121995ff27eb0 Mon Sep 17 00:00:00 2001 From: Olly Butterfield Date: Mon, 19 Dec 2022 15:40:42 +0000 Subject: [PATCH] Update types.go --- types.go | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/types.go b/types.go index 0fce826..55ed36b 100644 --- a/types.go +++ b/types.go @@ -88,9 +88,10 @@ type Incident struct { PostmortemDocumentUrl string `json:"postmortem_document_url,omitempty"` // Reference to this incident, as displayed across the product - Reference string `json:"reference"` - Creator Actor `json:"creator"` - Severity Severity `json:"severity"` + Reference string `json:"reference"` + Creator Actor `json:"creator"` + Severity Severity `json:"severity"` + ExternalIssueReference ExternalIssueReference `json:"external_issue_reference"` // ID of the Slack channel in the organisation Slack workspace SlackChannelId string `json:"slack_channel_id"` @@ -259,6 +260,17 @@ type Severity struct { UpdatedAt time.Time `json:"updated_at"` } +type ExternalIssueReference struct { + // Ref of the external issue + IssueName string `json:"issue_name"` + + // permalink to the external issue + IssuePermalink string `json:"issue_permalink"` + + // Provider of the external issue + Provider string `json:"provider"` +} + type IncidentTimestamp struct { // When this last occurred, if it did LastOccurredAt time.Time `json:"last_occurred_at,omitempty"`