All eazyBI for Jira eazyBI for Confluence Private eazyBI

Import issue links
eazyBI for Jira

Issue links are not imported by default in eazyBI, as this information describes different relations between different issue types. However, this information is available to eazyBI, and you can import the issue links of interest.

There are two ways to import issue links:

Defining issue links at the account level offers a more user-friendly alternative to configuring them through advanced settings. This approach simplifies the process by automatically fetching the link directions directly from the user's Jira issue link settings. Since the issue link settings are set up at the account level - they will only be available for import at the particular account.

On this page:

Account-specific issue links are imported into one eazyBI account only and unavailable for other eazyBI accounts. eazyBI users with Data admin or higher roles can define new calculated fields in the account.

In Jira import options, tab Custom fields, section Issues links, you can add new, edit, and delete account-specific issue links and see the global issue links defined in eazyBI advanced settings.

Choose the option to Add new Issue links field and fill in the required information describing which issue links to import.

Before saving the new issue link field, test the configuration to see if the defined settings returned the expected results. In the field Test issue settings with the issue, enter a particular issue key from your Jira and check the results.

You can edit both account-specific issue links and global issue links to adjust them for this particular account.

  1. Before editing the existing issue link, check if the issue link has already been imported into the account. If the issue link is already imported, unselect it from import and then import data to remove the previously imported properties and dimensions for the Issue links (see also Changes in issue links).
  2. In the Advanced Settings column, select the Edit option and make the necessary adjustments.
  3. Before saving changes, test the configuration to see if the settings defined returned the expected results. In the field "Test issue settings with the issue," enter a particular issue key from your Jira and check the results.
  4. After editing, select the edited field for import and then import the data to apply the updated configuration.

If you change the global issue links from import options, the configuration changes will only be effective in the specific account where the edits are made. If the original issue link is removed from the eazyBI advanced settings, it will no longer be available at the account level, even if it was previously edited.

Global calculated fields are defined once per eazyBI instance from advanced settings and are available for all eazyBI accounts. The data admin should select and import them into a particular account to use them in reports. Only Jira system administrators and Jira org admins can define new global calculated fields in eazyBI.

If you would like to import selected issue links into eazyBI you need to define additional calculated custom fields using advanced settings for custom fields (available only to Jira system administrators, Jira site admin, and eazyBI admins).

At first, you need to give a name for this issue link calculated custom field:

 For example:

[jira.customfield_feature]
name = "Feature"
outward_link = "is a feature for"

You can also specify several outward or inward links, for example:

outward_link = ["is a feature for", "is an theme for"]
issue_type = "Feature"

or several issue types:

issue_type = ["Feature", "Theme"]
update_from_issue_key = "parent_issue_key"
dimension = true
multiple_values = true

parameter update_from_issue_key does not work with multiple_values = true


After you have saved the advanced settings with this issue link field definition then go to the Source Data tab and see if you have this custom field in the list of available custom fields.

If you would like to test if the field is defined correctly then select it and click Add custom JavaScript code and test it with some issue key. Expand fields and see if the corresponding customfield_NAME field contains the linked issue key that you are expecting.

This is an example where issues are grouped into features (by linking issues to features) and then features are grouped into themes (by linking features to themes):

[jira.customfield_feature]
name = "Feature"
outward_link = "is a feature for" #link name and direction from the issue perspective
issue_type = "Feature"
update_from_issue_key = "parent_issue_key" # pass down values to sub-tasks of issue
dimension = true
 
[jira.customfield_theme]
name = "Theme"
outward_link = "is a theme for" #link name and direction from Feature perspective
issue_type = "Theme"
update_from_issue_key = "customfield_feature"  # pass down values to children of feature 
dimension = true

In this example, all issues (with their subtasks) within features will also be related to the corresponding theme. At first, customfield_feature will be updated for sub-tasks using the parent_issue_key field (which stores the parent issue key for sub-tasks). And then customfield_theme will be updated for parent issues and sub-tasks using the customfield_feature.

This is an example where epics are grouped into features (by linking epics to features) and then features are grouped into improvements (by linking features to improvements):

#import reference to Improvement for Feature
[jira.customfield_improvement]
name = "Improvement"
inward_link = "is child of" #link name and direction from Feature perspective
issue_type = "Improvement"
dimension = true
update_from_issue_key = "customfield_feature" # pass down values to children of feature

##Issue is child of Feature
#import reference to Feature for Epic
[jira.customfield_feature]
name = "Feature"
inward_link = "is child of" #link name and direction from Epic perspective
issue_type = "Feature"
dimension = true
update_from_issue_key = "epic_key" # pass down values to children of epic

If you have many bugs that can be related to one story or feature with the issue link 'causes' and you would like to see by bug which issues it is related to, then you can import them as a multi-value dimension:

## Story causes Bug(s)
[jira.customfield_bugs]
name = "Bugs"
outward_link = "causes"  #link name and direction from Stoy perspective
issue_type = "Bug"
multiple_values = true # story can cause multiple bugs
dimension = true

There might be cases when issue link configuration parameters seem not to be working as expected. Here are hints to find out the reasons why issue link information is not imported in eazyBI correctly.

  1. Check if you have correctly used inward_link or outward_link direction of the link. 
    The general rule: check the link name in the issue screen you consider as a "parent" issue. Or if you want to get all defects logged against a task, then check the link name in the task issue screen.
    Then go to Jira administration and check whether this name is for the inward or outward endpoint of the link. Keep in mind that the link name could differ according to its direction! 
  2. You need to use the correct name (all spaces, upper/lower case) of the inward or outward link configured in Jira. To avoid misspellings, it is a good idea to copy the name from the Jira configuration screen. It is even a better idea to copy the link name from the edit screen since it will show some possible leading or trailing spaces that might accidentally be entered in the link name (see picture below):
  3. You also can check the specific issue to see if the issue link is used as intended by the configuration. 

    For the example above, the following settings should be used to create a correct custom field for the hierarchy (mind the space in the inward link name!):

    [jira.customfield_epic_feature] 
    name = "Feature" 
    inward_link = "Parent Feature " 
    issue_type = "Feature" 
    update_from_issue_key = "…" 

Whenever you make changes to issue links (in import options or advanced settings) and these links are already imported, perform a double data import. Deselect the issue link from import and import data. Edit the the issue link and save the changes. Then, select the issue link field and import data once again.

Once imported as a dimension, you may need additional formulas to analyze data related to linked issues. The documentation page MDX formulas for issue links dimensions provides calculated measure examples to help you get started. Simply copy the formulas into your eazyBI account and replace "Bugs" with the actual name of your issue link dimension.