If you have the dimensions specified, you can fill in values as well as map measure to them in the following way.
Please note that the dimensions must be single value and with a separate table to be able to map values to them:
[jira.customfield_col1]
name = "Col1"
data_type = "string"
dimension = true
separate_table = true
And the further measure adding would be as follows:
[jira.customfield_tbl_measure]
name = "Tbl Measure"
data_type = "decimal"
measure = true
multiple_dimensions = ["Col1"]
javascript_code = '''
getDocument("/rest/idalko-igrid/1.0/grid/AAAAA/issue/" + issue.id, {ignoreErrors: [404,400]},
function(result){
resultArray = [];
if (result && result.values) {
result.values.forEach(function(valuesItem){
resultArray.push([
valuesItem.icol1,
valuesItem.imeasure
]);
})
}
issue.fields.customfield_tbl_measure = resultArray.join("\n");
});
'''
Lauma / support@eazybi.com