# Help displaying Component Name

**URL:** <https://community.eazybi.com/t/help-displaying-component-name/688>\
**Category:** Questions & Answers\
**Tags:** javascript, component, mdx\
**Created:** [June 24, 2018, 3:02am UTC](https://community.eazybi.com/t/help-displaying-component-name/688 "2018-06-24T03:02:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![zane.baranovska](https://community.eazybi.com/user_avatar/community.eazybi.com/zane.baranovska/32/7209_2.png) [@zane.baranovska](https://community.eazybi.com/u/zane.baranovska)\
**Post date:** [June 25, 2018, 6:45am UTC](https://community.eazybi.com/t/help-displaying-component-name/688/3 "2018-06-25T06:45:04Z")

</div>

Hi,

The component is a multi-selection field in Jira, and each issue may have more than one.  
To get related components to the issue, you may use function [Generate()](https://docs.eazybi.com/display/EAZYBI/Generate) and iterate through all components which are related to issue. A formula may look like this:

```
Generate(
  -- iterate through all components
  Filter(
    [Project].[Component].Members,
    [Measures].[Issues created] > 0),
  -- retun a listo of issue related components separated by comma
  [Project].CurrentMember.Name,
  ', ')

```

Another approach is to import **Component** as issue property in eazyBI. To do this, you may define Component as [JavaScript calculated custom field](https://docs.eazybi.com/display/EAZYBIJIRA/JavaScript+calculated+custom+fields).  
In eazyBI advanced settings, copy in this definition with JavaScript to fetch issue component.

```
[jira.customfield_eazybicomponent]
name = "Component"
data_type = "string"
multiple_values = true
split_by = ","
javascript_code = '''
issue.fields.customfield_eazybicomponent = issue.fields.components;
'''

```

Then in import options, select custom field **Component** to import **as property**. And import data.

Best,  
Zane / [support@eazyBI.com](mailto:support@eazyBI.com)

---

_[View the full topic](https://community.eazybi.com/t/help-displaying-component-name/688)._
