# Cant Select the Components even after adding Custom JavaScript code

**URL:** <https://community.eazybi.com/t/cant-select-the-components-even-after-adding-custom-javascript-code/2279>\
**Category:** Questions & Answers\
**Tags:** javascript\
**Created:** [May 30, 2019, 8:50pm UTC](https://community.eazybi.com/t/cant-select-the-components-even-after-adding-custom-javascript-code/2279 "2019-05-30T20:50:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![martins.vanags](https://community.eazybi.com/user_avatar/community.eazybi.com/martins.vanags/32/8905_2.png) [@martins.vanags](https://community.eazybi.com/u/martins.vanags)\
**Post date:** [June 13, 2019, 1:01pm UTC](https://community.eazybi.com/t/cant-select-the-components-even-after-adding-custom-javascript-code/2279/2 "2019-06-13T13:01:48Z")

</div>

Hi,

Quite recently we added a [page dimension](https://docs.eazybi.com/eazybi/analyze-and-visualize/create-reports#Createreports-Pagedimensions) 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

```auto
    [jira.customfield_eazybicomponent]
    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

---

_[View the full topic](https://community.eazybi.com/t/cant-select-the-components-even-after-adding-custom-javascript-code/2279)._
