Custom and System Fields with eazyBI

How to create a report with specific custom and system fields that doesn’t appear as measures in eazyBI?

Components

Go to advanced settings in eazyBI, add the code below, move to custom fields in the source settings, add components. When the re-import has finished, head to your report, and voila, components is a measure ready to add to your report.

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

Description

Install the free myGroovy app for Jira, and create a new scripted text custom field. Don’t add it to a screen.

Add this code to the new field. Name it, for example, „Description for import“:

def description = issue.getDescription();
if (!description){
    return;
}
else{
    description;
}

Figure out the field id. It is printed in the URL if you click the field in Jira’s settings.

Add this code to eazyBI advanced settings. Replace NNNN with the field id:

[jira.customfield_NNNN]
data_type = "text"

Select the new „Description for Import“ field in the source settings, tab custom fields.

After the re-import, it will appear as a measure in your report.

References

https://community.eazybi.com/t/help-displaying-component-name/688/2

https://docs.eazybi.com/eazybijira/data-import/data-from-jira-and-apps/jira-calculated-and-scripted-custom-fields#JiraMiscCustomFields-Description

Click here to see how to use eazyBI for reports on change requests in Jira.

All the best,

Jens