Forums

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

Code snippet in Jira issue doesn't show once text box is saved

Peter Gebhard
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!
May 5, 2023

I have added a code snippet in a Jira issue (see below):Screenshot 2023-05-05 at 2.25.55 PM.png

 

When I save the text box, however, the code snippet doesn't render/display (see below):

Screenshot 2023-05-05 at 2.26.05 PM.png

 

This doesn't seem like the intended behavior. I would expect the code snippet to render in a similar way to the preview mode where I typed the content.

2 answers

1 accepted

0 votes
Answer accepted
Peter Gebhard
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!
May 23, 2023

It seems to be working now. It must have been a small bug that got resolved quickly.

0 votes
Esther Strom
Community Champion
May 5, 2023

Hi, @Peter Gebhard - can you post a screenshot of what your field (assuming you're putting this in the Description?) looks like in Edit mode? I'm able to format code in my Description and it renders correctly, but it doesn't look like yours (there are no line numbers.)

I'm wondering how you inserted the code; did you just type it in and then highlight it and select the Code option?

2023-05-05 15_16_20-Esther's Classic Kanban - Agile Board - The Jira of Champions - Brave.png

 

2023-05-05 15_18_08-Esther's Classic Kanban - Agile Board - The Jira of Champions - Brave.png

ETA: I also tested it using the Code Snippet insert, and it formats and renders correctly.

2023-05-05 15_19_40-Esther's Classic Kanban - Agile Board - The Jira of Champions - Brave.png

Suggest an answer

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

Atlassian Community Events