An annoying, but not critical, bug in JIRA Code snippet. Is this a known issue?
Steps:
Open a Jira issue
Start to write a new comment
Add a code snippet
Write a few lines in it
Add a new line between the other lines
Start to write in the new line
Observed behaviour:
The text from the line below goes to the current line.
Expected behaviour:
The text below should stay in its line.
This is a known editing quirk in the Jira Cloud comment editor when using the rich-text code snippet block. The issue happens because the editor treats line breaks inside the code block as inline formatting rather than pure text, which causes the cursor to merge lines when inserting new content. Atlassian has tracked similar behavior in current editor updates for Jira Cloud, where the code block component doesn’t yet handle mid-line edits consistently across browsers.
The most reliable workaround is to switch the comment editor to Markdown mode before adding or editing code snippets.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.