Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×I try to create issues using jira's rest api.
using this: POST /rest/api/3/issue
I'm adding code blocks in issue description area. Using this data scheme:
```
```
It's work but i can't syntax highlight and can't edit line numbers for real lines on source document.
Can this be done? and where can i find the documentation about this description field.
Hi @Alperen Ozdemir - Welcome to the Community!
I think what you're running into is that the code format in the Description field doesn't seem to allow additional syntax highlighting. At least I could not do this in the UI.
I did find an answer that links to documentation for the {code} macro in Confluence which apparently uses the same renderer as Jira. It includes the ability to select different themes and what might be of use to you, a firstline parameter that might allow you to specify at least the first line of the code snippet.
Oof. I just tested. The language and firstline parameters don't seem to do anything. Very odd.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But yeah, maybe you could try adding an attribute of {firstline: 1234} (maybe "1234"?) to see if that might do something.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.