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"`