-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
Migrating from the v2 to the v3 format due to the atlassian deprecation and deletion of the previous API.
I followed the documentation here to set the description
https://prometheus.io/docs/alerting/latest/configuration/#jira_config
Both APIs have the same feature set. The difference is that V2 supports Wiki Markup for the issue description and V3 supports Atlassian Document Format (ADF). The default jira.default.description template only works with V2.
So I set the descrpition to a new template (without any variables just like their example)
https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/
And I got an error in the logs
level=ERROR source=dispatch.go:363 msg="Notify for alerts failed" component=dispatcher num_alerts=2 err="jira/jira[0]: notify retry canceled due to unrecoverable error after 1 attempts: failed to POST request to \"issue\": unexpected status code 400: {\"errorMessages\":[],\"errors\":{\"description\":\"La valeur de l'opération doit être un document Atlassian (voir le format de document Atlassian)\"}}"
I see in the code you try to unmarshal the description: https://github.com/prometheus/alertmanager/blob/main/notify/jira/jira.go#L167-L172
Metadata
Metadata
Assignees
Labels
Type
Projects
Status