Hi,
Query1:
I tried the code suggested earlier for a grid data to be imported in eazy bi report.
[jira.customfield_tbl_site]
name = "Tbl site"
dimension = true
data_type = "string"
multiple_values = true
split_by = ","
javascript_code = '''
getDocument("/rest/idalko-igrid/1.0/grid/11490/issue/" + issue.id, {ignoreErrors: [404,400]},
function(result){
resultArray = [];
if (result && result.values) {
result.values.forEach(function(valuesItem){
resultArray.push(
valuesItem.isite
);
})
}
issue.fields.customfield_tbl_site = resultArray.toString();
});
'''
But this is not working. Please let me know what changes need to be made.
I have placed a screenshot of the way isite is defined.
Query2:
For grid column with data type as interger/number i m not able to import the column even though i mention measure as true:
One such code is below:
[jira.customfield_DAO]
name = "Tbl DAO"
data_type = "integer"
measure = true
multiple_values = true
split_by = ","
javascript_code = '''
getDocument("/rest/idalko-igrid/1.0/grid/11075/issue/" + issue.id, {ignoreErrors: [404,400,406]},
function(result){
resultArray = [];
if (result && result.values) {
result.values.forEach(function(valuesItem){
resultArray.push(
valuesItem.idao
);
})
}
});
'''
Please let me know how i can changes this code to make it work.
Thanks in advance
Devashree