Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Why do I get an error when using Code block formatting?

Ian Wagner January 31, 2019 edited

I am trying to drop 16 lines of javascript in a ticket. I get the same error if I add to description or comments. Is there a workaround? Its much better for my developers to add code directly to a ticket without using attachment.

Jira error.PNG

1 answer

0 votes
roman
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 Leaders.
February 1, 2019

Hi @Ian Wagner,

how many characters are in the code snippet? Jira Cloud seems to have a limit of 32767 characters in a text field.

There is currently no solution until Atlassian adds on option to control the limit: https://jira.atlassian.com/browse/JRACLOUD-64351.

Roman.

Ian Wagner February 3, 2019

@roman

646 characters

roman
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 Leaders.
February 4, 2019

Thanks for the info, Ian.

I have tried to add a code macro to the issue’s description with 687 characters across 16 lines. It worked for me without problems.

Can you try adding the code just as plain text to the Comment or Description field?

Roman.

Ian Wagner February 4, 2019

Yes - I can add to Comment and Description as plain text. However, I want to add as code block to keep the formatting in line with the code. 

roman
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 Leaders.
February 4, 2019

Would it be possible to share the code of the macro and the contents in wiki markup? I will try to add the same to my Jira.

Roman.

Ian Wagner February 13, 2019

I have to switch to Old View, drop the code and save.

 

This works but it appears that New View has an issue. At least for me 

roman
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 Leaders.
February 14, 2019

Great the we have a workaround!

I hope Atlassian is aware of this.

Roman.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events