# Issue labels as property

**URL:** <https://community.eazybi.com/t/issue-labels-as-property/1070>\
**Category:** Tips & Tricks\
**Tags:** label\
**Created:** [September 28, 2018, 6:59am UTC](https://community.eazybi.com/t/issue-labels-as-property/1070 "2018-09-28T06:59:57Z")\
**Posts on this page:** 2\
**Page:** 1

<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:** [September 28, 2018, 6:59am UTC](https://community.eazybi.com/t/issue-labels-as-property/1070/1 "2018-09-28T06:59:57Z")

</div>

Jira field “Label” is being imported in eazyBI as a separate dimension out of the box, but there are cases when you would want to display issue labels (comma separated string) as the property in your eazyBI report.  
One way would be by creating a new calculated member in “Measures” dimension using MDX code, but it would still take some time to calculate results in the report as they should come from “Label” dimension based on the report context.

A much faster calculation would be by defining a new Javascript calculated custom field via eazyBI [advanced settings](https://docs.eazybi.com/display/EAZYBIJIRA/Advanced+settings+for+custom+fields)

```
[jira.customfield_alllabels]
name = "All labels"
data_type = "string"
javascript_code = '''
var labellist = new Array();
if ( issue.fields.labels && 
     issue.fields.labels.length > 0) {
  var lbls = issue.fields.labels;
  for (var i = 0; i < lbls.length; i++) {
  var lbl = lbls[i];
    {
	labellist.push(lbl.name)}; 
 }
issue.fields.customfield_alllabels = lbls.join(",");
}
'''

```

Then you could select this new field “All labels” via [Jira import options](https://docs.eazybi.com/display/EAZYBIJIRA/JIRA+Issues+Import#JiraIssuesImport-JiraCustomFields) to import as the property for an issue and display in your report.

 ![labels%20as%20property](https://community.eazybi.com/uploads/default/original/1X/1c75708817004df469f6293e7a3caa0073eb1507.jpeg)

---

<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:** [September 30, 2020, 7:21am UTC](https://community.eazybi.com/t/issue-labels-as-property/1070/2 "2020-09-30T07:21:30Z")

</div>

Good news! Starting eazyBI **version 6.1** and on **Cloud** new issues properties are added to the standard data set:

- Issue labels
- Issue components
- Issue affects versions
- Issue fix versions

Less JavaScript calculated custom fields 😉

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