I've connected Opsgenie with Jira (using the Jira Service Management Cloud integration) so certain alerts in Opsgenie are reflected as an issue in Jira.
I'm including YAML code blocks in the alert description using the text formatting notation specified here, so the issue description is something like:
Some description of the alert here.
My code block:
{code:yaml}
metadata:
name: myname
key1: value1
data:
replicas: 1
somelist:
- item1
- item2
{code}
I expect the issue description to be something like:
The problem is the language is not being properly highlighted in Jira. Although it understands the code block as such, it doesn't seem to detect the configured language (YAML) and highlights it as Java code:
Is there any other way of formatting code blocks via API?
tl;dr: I'm trying to format a YAML code block using Jira's markup language, but the code block is being presented as Java code. I'm using the API interface, not the browser. What's the proper way to do it?
Hi @Jorge Carpio ,
This is a case I think would benefit from being looked at closer in a Support Ticket, but can you confirm what API endpoint you're using so that we can do some testing on our end between languages?
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.