diff --git a/deepfence_server/pkg/integration/jira/jira.go b/deepfence_server/pkg/integration/jira/jira.go index 1f4cb4c6f1..390bb056c5 100644 --- a/deepfence_server/pkg/integration/jira/jira.go +++ b/deepfence_server/pkg/integration/jira/jira.go @@ -117,6 +117,15 @@ func (j Jira) SendNotification(ctx context.Context, message []map[string]interfa return err } + payload = string(finalByte) + } else { + finalByte, err := json.MarshalIndent(message, "", " ") + if err != nil { + log.Error().Msgf(err.Error()) + span.EndWithErr(err) + return err + } + payload = string(finalByte) }