It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I escape a backslash using JIRA markup?

How can I write foo\bar using JIRA markup? The backslash is an escape character and the double backslash does not appear to be rendered as a single backslash. a workaround using the HTML escape code \ but I don't consider this to be a resonable solution.

6 answers

for the shruggie enthusiasts


This is the exact reason I was trying to find out how to escape a backslash without a newline.  :)

Like # people like this

Shruggers gonna shrug! ¯_(ツ)_/¯

This worked for me:


Use the Character Encoding Number: 


OP stated

{Quote} a workaround using the HTML escape code \ but I don't consider this to be a resonable solution{quote}

actually, the above didn't work for me.  this did:


If it's a special text (like a directory) you could use


That's a whole different formatting. I needed to use this in a normal paragraph, something like "Copy all foo\*.txt files to the bar directory and ..."

OK, than I only know the already mentioned method in JRA-9258.

There are many cases where symbols follow \ and the \ cannot be displayed.

I've wasted too much time with this trying to find workarounds that look terrible if they work at all.


IMO there is no need to escape something...

{ need to be escaped afaik..otherwise a line break will appear :(

i mean like blablabla{1,2}

this will be saved as



blablabla\{1,2\} will show up correctly

Yes, but *foo\bar* is working perfectly.

Yes, it works. It seems that I picked the wrong example. Try foo\*.txt. This will not work.

In this case:

  • one backslash escapes the * which is a special character
  • two backslashes mean new line (this is unfortunate)

UPDATE: Initially I picked the wrong example. As pointed out by Henning, foo\bar works fine. foo\*.txt doesn't though.

0 votes

This is a serious bug. If Jira has a WYSIWYG editor, it should be really WYSIWYG, and not just make a half-hearted attempt at it. (It should automatically escape all characters as needed, so that what you type is really what gets shown on the page.)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

The add-in you’ve been waiting for: Jira Cloud for Excel 🙌

Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...

932 views 8 25
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you