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)
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)
Please sign in to leave a comment.
Try following:
<#if issue["Reporter Details"]?has_content> Reporter Details:${issue["Reporter Details"]} </#if>
What would you like to implement in this template?
Did you try my variant which is above?
Thank you.
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
How do we refer to such fields in a JavaScript workflow?
YouTrack treats ctx.issue.fields.["field label"] like a string.
Julian Dumitrascu you need to use
issue.fields['FIELD NAME']
, but also specify this in the requirements section:FieldName: {
type: ...,
name: 'FIELD NAME'
}