Skip to content

Commit

Permalink
Jira - fix attachment empty when optional custom fields are not set (#…
Browse files Browse the repository at this point in the history
…2354)

(cherry picked from commit 5bc0d34)
  • Loading branch information
ramanan-ravi committed Oct 25, 2024
1 parent b90f362 commit de89778
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions deepfence_server/pkg/integration/jira/jira.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit de89778

Please sign in to comment.