How to refer to a custom field that contain space character?

We have space character in our custom field "Reporter Details"
Ho to refer to such a field?

the following syntax is incorrect in notifications templates:
<#if issue.Reporter Details?has_content> Reporter Details:${issue.Reporter Details} </#if>
ho to make it correct using space character in custom field name???? (we don't want to use underscores etc. in our fields)
4 comments
Comment actions Permalink
Hello Krasm,

Try following:

<#if change.after.Reporter Details?has_content>
Reporter Details:${change.after.Reporter Details}
</#if>
prettyPrint();
0
Comment actions Permalink
I managed to access the variable using the following syntax:

<#if issue["Reporter Details"]?has_content> Reporter Details:${issue["Reporter Details"]} </#if>
0
Comment actions Permalink
Krasm,

What would you like to implement in this template?
Did you try my variant which is above?

Thank you.
0
Comment actions Permalink
Yes I tried, and got the following error:
Encountered "Details" at line 17, column 28. Was expecting one of: ">" ... "." ... "[" ... "(" ... "?" ... "!" ... ... "??" ... "+" ... "-" ... "*" ... "/" ... "%" ... "!=" ... "=" ... "==" ... ">=" ... ... ">" ... ... ... ... ".." ... ... ...

I want to check and display custom field value like in the example above.

here is the reference I found: http://freemarker.sourceforge.net/docs/ref_specvar.html
0

Please sign in to leave a comment.