TP-51197 | Fixed meeting link display in blaze channel (#326)
* TP-38709 | Merging the changes to master on the logfix * TP-51197 | Fixed meeting link display on blaze channel * TP-51197 | Fixed label for meeting not available
This commit is contained in:
@@ -119,7 +119,9 @@ func (isp *CreateIncidentAction) CreateIncidentModalCommandProcessing(callback s
|
||||
} else {
|
||||
util.UpdateIncidentWithConferenceDetails(incidentEntity, calendarEvent, isp.incidentRepository)
|
||||
msgUpdate := NewIncidentChannelMessageUpdateAction(isp.client, isp.incidentRepository, isp.teamRepository, isp.severityRepository)
|
||||
blazeMessageUpdate := msgUpdate
|
||||
msgUpdate.ProcessAction(incidentEntity.SlackChannel)
|
||||
blazeMessageUpdate.ProcessAction(callback.Channel.ID)
|
||||
bookmarkParam := slack.AddBookmarkParameters{Link: calendarEvent.ConferenceLink, Title: calendarService.GetConferenceTitle()}
|
||||
_, err := isp.client.AddBookmark(*channelID, bookmarkParam)
|
||||
if err != nil {
|
||||
|
||||
@@ -63,9 +63,9 @@ func buildSeverityAndTicketSectionBlock(severityName string) *slack.SectionBlock
|
||||
}
|
||||
|
||||
func buildStatusAndConferenceLinkSectionBlock(incidentStatus string, conferenceLink string) *slack.SectionBlock {
|
||||
var conferenceLinkLabel = "Integration Disabled"
|
||||
var conferenceLinkLabel = "Not available"
|
||||
if conferenceLink != "" {
|
||||
conferenceLinkLabel = conferenceLink
|
||||
conferenceLinkLabel = fmt.Sprintf("*<%s|Google Meet>*", conferenceLink)
|
||||
}
|
||||
fields := []*slack.TextBlockObject{
|
||||
slack.NewTextBlockObject("mrkdwn", fmt.Sprintf("*Status*\n%s", incidentStatus), false, false),
|
||||
|
||||
Reference in New Issue
Block a user