Cant Select the Components even after adding Custom JavaScript code

Good Afternoon,
I’m trying to Import Component/s as a Dimension because we need to be able to target Vulnerabilities by asset (Components).
But when I add custom JavaScript code in the Additional Options and I test the custom JavaScript code with an issue test and the Information appears.

But when I go back to the custom Field tab, i Still cant select it ??

name = “Components”
data_type = “string”
dimension = true
multiple_values = true
split_by = “,”
javascript_code = “”

var components=issue.fields.components;
var result=[];

if (components) {
for (var i=0;i<components.length;i++)

{ result.push(components[i].name); }

What am I Missing here ?!?



Quite recently we added a page dimension feature where you can use the same dimension in pages and in columns/rows
Perhaps, you can play around with “Project” dimension in your report where Component is one of the hierarchy levels in that dimension.

If you still need a separate dimension for Components, try this Javascript code in your eazyBI advanced settings .
And you don’t need to add custom code in Additional Options but in Advanced settings which is a different place in UI.

Note that only Jira system administrators or eazyBI admins can access advanced settings.

Try this code to define a new dimension for Components

name = "Component"
data_type = "string"
multiple_values = true
split_by = ","
dimension = true
javascript_code = '''
issue.fields.customfield_eazybicomponent = issue.fields.components;

After that, open eazyBI import options and find your new custom field “Components” under the custom_fields tab and select it to import as a separate dimension.

Martins / eazyBI support