Hello
According to linked markup help in Jira automation it's possible to use {{some text}} syntax to display text monospaced ("more formatting" --> "Code" resp. CTRL+SHIFT+M in new rich text editor).
However the double curly brackets are reserved for smart values in automation already.
How to use monospaced formatting within comments generated by automation?
Many thanks
Hey Brat,
I came up with a workaound.
Create two variables:
Then you can set monospace text this way:
{{openingCurlyBrackets.remove("\\")}}my text in monospace format{{closingCurlyBrackets.remove("\\")}}
thank you, this is so lame...
I went for this variation, create four variables:
Then use it as {{codeOpen}}my text in monospace format{{codeClose}}
this is so lame (it really is)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you need to use this in multiple words it's a little lengthier but this is what I did:
Set project-level entity properties for the four variables above in a one-time rule (pick a random issue and run a manual or scheduled trigger).
Use it as {{project.properties.codeOpen}}my text in monospace format{{project.properties.codeClose}} in any rule you want!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh my god, Atlassian, what the heck are you doing???
In Markdown, you can just do: `this-is-formatted-in-monospace`.
Why does Atlassian hate developers so much?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Brat!
You should open the smart value with a backslash
For example:
\{\{monospace\}\}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Ignacio
Many thanks for your response. Unfortunately it didn't work in my rule:
This...
...becomes...
Do you see what I'm doing wrong?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.