SaltfishTry for free

How to Add Code Block in Jira

·1 min read
In this article

Adding code blocks to your Jira issues and comments helps you share formatted code snippets with proper syntax highlighting. This makes your technical discussions clearer and more professional-looking for your development team.

This tutorial walks you through the complete process of inserting code blocks in Jira using Markdown formatting, from selecting your issue to saving your formatted code snippet.

Here's how to add code block in Jira

  1. Choose the Jira issue where you want to insert your code block.
  2. Navigate to the comment section and click on the text input field.
  3. Wrap your code using triple backticks (```) if Markdown is supported in your Jira setup.
  4. Choose 'Markdown' from the formatting options available.
  5. Insert your code into the text field, specify the programming language, and click 'Save'.

Your turn to show how it works.

Build a walkthrough of your product with Saltfish, then share it with your customers.

Create a guide with Saltfish

Frequently Asked Questions

Your Jira instance needs to have Markdown support enabled to use code blocks with triple backticks. If Markdown isn't available, you may need to use the code macro or ask your administrator to enable Markdown rendering.