Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Code snippet - adding lines between code, the text below joins the current line

JC Heuvelink
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 9, 2025

An annoying, but not critical, bug in JIRA Code snippet. Is this a known issue?

Steps:

  1. Open a Jira issue

  2. Start to write a new comment

  3. Add a code snippet

  4. Write a few lines in it

  5. Add a new line between the other lines

  6. 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.

1 answer

0 votes
Mercy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 10, 2025

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events