All eazyBI for Jira eazyBI for Confluence Private eazyBI

Additional data import into Jira Issues cube
eazyBI for Jira

You can enrich the Issues data cube with additional data from external data sources, like files, REST API, or SQL SELECT to a database. This way you can import new measures and new properties to Issue dimension members.

Please first read about eazyBI cubes, dimensions, and measures, as well as the eazyBI Jira data model - you will need to understand the multi-dimensional data model to be able to map new source data columns to cube dimensions and measures.

From Source Data tab select Add new source application or Source Files tab to upload new source data.

Source data preparation

Before data import, it is necessary to see if the source data have a column by which eazyBI will be able to find members you would like to map imported measures or properties. It should be either Project key, Issue key, Time dimension (see which date formats are recognized by eazyBI as date or date-time), full Sprint name, or any of the member IDs or names matching the eazyBI dimension member names.

If you have selected any of the source applications, please first follow the source parameter specification

No source parameters are necessary in the case of source file upload; you can proceed directly to preview the data that will be imported. 

Column mapping

The next step is column mapping to Jira dimensions and defining what will be the new measures and properties.

First, select the Issues cube you want to import data into [1].

Then specify to which dimensions you would like to map the imported data [2]. Select a dimension and a dimension hierarchy level from the available dimension list of standard-work item and single select custom fields (for more details see Mapping to single value custom field dimensions below). In the example., there is a Project column mapped to the Project dimension, Project hierarchy level, and it means data are mapped to the projects in the Project dimension.

In advanced options, specify whether the column contains Name or Key values by which eazyBI can find each dimension member [3]. In the example, the Name column is selected because the projects in this column have the name specified exactly as this project name is in eazyBI and this is how eazyBI will be able to find to which project each of the measures or properties should be imported.

Usually, an external data source is not identical to data in eazyBI and might contain data on projects, persons, or issues that are not imported into the particular data cube. eazyBI throws an error if the external data source has rows that do not have a match in the selected dimension and additional data import stops. To handle those use cases and complete data import for matching data, select the advanced option Skip missing [3]. If eazyBI does not find a Project member with such name as is in this column, the data from that row is not imported this time and eazyBI proceeds with the next row. 

Next, specify how to import the other columns. When you click the Dimension field, the default import dimension is suggested based on the data type: any value as a property, numeric value as a measure, date maps to the Time dimension.

The columns where Dimension is not specified remain unmapped and will not be imported. You may enable the option Hide unmapped columns to see which columns are currently mapped and going to be imported.

You can adjust the source values or calculate a measure value from several columns. For this, add a calculated column or custom JavaScript code.

After mapping is complete, you can proceed to import. In the import status, eazyBI shows the count of successfully imported rows. If there are any errors they are displayed or import stops on the first error. In this case, you should see the error and edit the source application parameters or correct the source file and upload a new version for import. 

Please contact eazyBI support if you need any assistance with column mapping.

Measure

Number is suggested to import as Measure [4]. Note that this measure at a detailed level is visible for linked dimensions only (mapped dimensions in the data mapping screen). For example, if Budget EUR is linked to the Project dimension, but in a report you wish to add another dimension, e.g. Organization, for grouping data by projects and organizations, there will be value only for All Organizations, but not for individual organizations. This is because we have imported a Budget EUR that depends on a project only, not Project and Organization combinations (for more details see Using additional data in the report below).  When a measure is mapped to issues, you can use default dimensions mapping to analyze it by other dimensions too. You may also import numeric values as a property; then it could be displayed the same no matter what filter is selected.

Property

Any column (number, string, date) could be imported as property [5]. To import a property, select the same Dimension and Level as you have selected in the preceding column for mapping [2] and enter the Property name [5]. The property name does not have to match the Field name that is detected from the source data column header. Order sourced data columns so that the property is on the right of the dimension member it describes. You may change column order in eazyBI by dragging and dropping the columns.

Time dimension

Date is suggested to be imported as Time if the date matches supported date formats [6]. In the example below, the Project end date is imported to the Time dimension; thus the measure Budget EUR is mapped to Project and Time and could be analyzed by both dimensions.

Another option is to import date as property, measure counting rows with the date field, and map that date count measure to the Time dimension [7]. Map the date column the same way you would do for a property by selecting the same Dimension and Level as you have selected in the preceding column for mapping [2]. In advanced options, enter the Property name, a name for date count measure, and click in the field date count dimension to map the date count measure to the Time dimension. In the example below, besides the project property "Planned end date", eazyBI creates a new measure, "Project count by end date," that, combined with the Time dimension, will show how many projects have a planned end date in a selected period. 

Add default dimensions to measure mapping

The option to add default dimensions to mapping is available on Cloud and since eazyBI version 9.1 (not released yet).

An imported measure has values only in the context of the dimensions that you use in the column mapping. With the option Add default dimensions to mapping, eazyBI also maps the imported measure to the other dimensions, such as Assignee, Status, or Priority. It copies the context from an already-imported measure and applies it to the new measure. This way, you can analyze the new imported measure by these dimensions without calculated measures.

Use this option when the imported data describes individual work items (issues) or worklogs, and you want to analyze it by the same dimensions as Jira data.

For example, you import the Estimated budget EUR of each issue from an external system and map the Issue key column to the Issue dimension. With default dimensions for Issue by Issues created, each imported cost gets the same Project, Assignee, Status, and other dimension members as the issue has for the Issues created measure.

Add default dimension to mapping.png

Choose the dimension and measure to copy the context from:

  • Dimension: Select a dimension that the column mapping uses at its lowest level, such as Issue or Worklog. This preserves the granularity of the imported data; each row is assigned the context of a single issue or worklog. In the Issues cube, you can also select a dimension from an imported app, such as Xray Test, Zephyr Test Cycle, or Pull Request.
  • Measure: Select a predefined measure that has a value for every mapped row, such as Issues created, Issues with due date, or Hours spent. If the measure has no value for an issue, the imported row gets only the dimensions mapped in the column mapping.
  • Time: The imported values get the dates of the selected measure by default. For example, with the Issues created measure, the values are shown by the issue creation date; with the Issues with due date measure, by the due date; and with the Hours spent measure, by the worklog date.
    If the additional data source has a date you want to use instead, map it to the Time dimension.

To use this option, an eazyBI admin should enable it in eazyBI advanced settings or site settings for Cloud:

[ui.default_dimensions_mapping]
enable = true

Mapping to single value custom field dimensions

eazyBI supports additional data import to single-value custom field dimensions with one level. Please add an additional separate_table = true parameter to the custom field definition in the import options (see picture below) or in eazyBI advanced settings if the custom field is relevant to all eazyBI accounts.

Using additional data in the report

After successful additional data import, you can proceed to Analyze tab to include the imported data in reports.

  • The Imported measures are available in the Measures as User defined measures.
  • Imported properties are available in the Measures under the Custom properties section.

If you would like to use an additionally imported measure (like Budget EUR) with other dimensions in the report, you might want to create a new calculated measure to change the measure context and tell it to ignore the rest of the report dimensions. Use the DefaultContext() function and list the dimensions the measure is related to (from the mapping screen). For example, the expression for Budget EUR to look only at the selected Project would look like this:

DefaultContext((
  [Measures].[Budget EUR],
  [Project].CurrentHierarchyMember
))

For more details and examples, watch the training video "Building Reports on Different Data Sources".

Measures with default dimension mapping already have values for the other dimensions, there is no need to use calculations to change context.

Deleting additional data

While experimenting with additional data import and looking for the right data mapping, you might want to delete imported data after each iteration.

  1. Go to the Source Data and choose the option Delete data to clear imported measures or Delete to delete the whole data source. While this action clears imported measure values, it does not delete the measure itself or additional imported properties.
  2. Go to the Analyze section and open Measures. Find measures and properties that were imported with the additional data import, open them to show their contents, and then select Delete.

See also