Forums

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

jira code block macro not working after update to Jira 8.4.1

Dieter Brouckaert October 9, 2019

The code blocks aren't formatted after updating to a newer version.

Code blocks are now visualized as :

{code:java}
// Some comments here
public String getFoo()
{
return foo;
}{code}

 

While lists are visualized correctly.

2019-10-09_13-22.png

The two wiki plugins are enabled

2019-10-09_13-25.png


All renderer plugins are enabled:

2019-10-09_14-21.png

What could be causing this behavior?

2 answers

1 accepted

0 votes
Answer accepted
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 18, 2019

Hi Dieter,

I understand that you recently upgraded Jira to 8.4.1, but since that time you seem to be unable to get the {code} macro to properly format within Jira fields that use wiki markup (like comments or description.

From looking at your screenshots, I can see that while the plugins are enabled, you appear to have some modules of that plugin that are disabled.  You can click that modules enabled link on the right side to see which modules are enabled/disabled, like so:

Screen Shot 2019-10-18 at 1.50.59 PM.png

I'm betting that your environment seems to have the code module disabled.  You should see a button on the far right side to enable that module.  Try to click that to re-enable this.

I'm not sure what would have caused this, aside from an administrator having disabled these.  But try this and let me know if this helps.

Cheers,

Andy

Dieter Brouckaert October 18, 2019

Oh, seriously!
Thanks!

 

It's working!

0 votes
Kieran Ryan
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 26, 2023

Thanks for the tip about using {code} as markup for code blocks - other google articles were recommending back ticks which weren't working for me.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events