The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events