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)
0
6 comments
Hello Krasm,

Try following:

<#if change.after.Reporter Details?has_content>
Reporter Details:${change.after.Reporter Details}
</#if>
0
I managed to access the variable using the following syntax:

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

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

Thank you.
0
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

How do we refer to such fields in a JavaScript workflow?

YouTrack treats ctx.issue.fields.["field label"] like a string.

0

Julian Dumitrascu  you need to use issue.fields['FIELD NAME'] , but also specify this in the requirements section:

FieldName: {
     type: ...,
     name: 'FIELD NAME'
   }

1

Please sign in to leave a comment.